Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!mephisto!udel!udccvax1!sun.udel.edu!weave From: weave@sun.udel.edu (Ken Weaverling) Newsgroups: comp.unix.questions Subject: Re: How to clean out Zombies? Summary: If SYS V, try SIG_IGN SIGCLD Message-ID: <12835@sun.udel.edu> Date: 22 Jul 90 20:54:05 GMT References: <24986.26a58a7a@kuhub.cc.ukans.edu> <1990Jul21.031957.7141@virtech.uucp> Reply-To: weave@sun.udel.edu (Ken Weaverling) Organization: Delaware Tech College Lines: 13 In article <1990Jul21.031957.7141@virtech.uucp> cpcahil@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@sun.udel.edu