add a service to reap zombies, use it in SLIRP
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Mar 2011 17:21:10 +0000 (18:21 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 29 Mar 2011 13:14:11 +0000 (08:14 -0500)
commita048bb6e4de6b6f52589fb223afd26a17ca305df
treee96c20c18a4ef32efe87295a70d17316757832cb
parent9124a5cbe12b0733ce8f17726e7bbfb118d0d9f9
add a service to reap zombies, use it in SLIRP

SLIRP -smb support wants to fork a process and forget about reaping it.
To please it, add a generic service to register a process id and let
QEMU reap it.  In the future it could be enhanced to pass a status,
but this would be unused.

With this in place, the SIGCHLD signal handler would not stomp on pclose
anymore.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
iohandler.c
os-posix.c
qemu-common.h
slirp/misc.c