]> git.proxmox.com Git - qemu.git/commit
slirp: Avoid zombie processes after fork_exec
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 8 May 2009 10:34:17 +0000 (12:34 +0200)
committerMark McLoughlin <markmc@redhat.com>
Tue, 9 Jun 2009 10:38:49 +0000 (11:38 +0100)
commit7c3370d4fe3fa6cda8655f109e4659afc8ca4269
tree681f9d6d086927c0804fc83e7185790cf9085471
parentc27ff60871aff588a35e51d1a90faed410993e55
slirp: Avoid zombie processes after fork_exec

Slirp uses fork_exec for spawning service processes, and QEMU uses this
for running smbd. As SIGCHLD is not handled, these processes become
zombies on termination. Fix this by installing a proper signal handler,
but also make sure we disable the signal while waiting on forked network
setup/shutdown scripts.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
net.c
vl.c