How to clean out Zombies?
Ken Weaverling
weave at sun.udel.edu
Mon Jul 23 06:54:05 AEST 1990
In article <1990Jul21.031957.7141 at virtech.uucp> cpcahil at virtech.UUCP (Conor P. Cahill) writes:
>Essentially what you need to do is call wait() as some point which will
>clean up the zombies. You can set up your daemon to get a signal whenever
>a child exits and you can then do the wait() which won't block.
>
The SYS V 3.1 box I have has an easier way to do it. Just set SIGCLD to SIG_IGN
in the parent process and have the child exit with exit(). No zombies!
That info was in the man page for signal and sigset.
--
Ken Weaverling (insert any job title here, except for official spokesperson)
Delaware Technical & Community College --- weave at sun.udel.edu
More information about the Comp.unix.questions
mailing list