[Libvir] PATCH: Prevent zombie ssh tunnels
Daniel Veillard
veillard at redhat.com
Tue Sep 11 10:01:36 UTC 2007
On Tue, Sep 11, 2007 at 11:35:46AM +0200, Gerd Hoffmann wrote:
> Daniel Veillard wrote:
> > - the ssh process dies
> > - libvirt based application takes some time to notice it
> > - the OS span a new process with the same PID after a PID rollabck
>
> Can not happen as long as libvirt hasn't asked for the exist status via
> waitpid() because the pid is still in use by the zombie ssh process.
Hum, which is precisely why we need the patch. Still I would feel a bit
better if we could check that priv->pid is a child of the current process
something like (getppid(priv->pid) == getpid()) test before any kill would
do this easilly I think.
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard at redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
More information about the libvir-list
mailing list