Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!bria!mike Newsgroups: comp.unix.questions Subject: Re: Defunct Processes Message-ID: <438@bria> Date: 14 Feb 91 07:48:46 GMT References: <26004@adm.brl.mil> Reply-To: uunet!bria!mike Organization: MGI Group International, Los Angeles, CA Lines: 19 In an article, sun.com!iis!venkat writes: |I am sure this question was asked several times but I did not keep track |of it. I have a daemon process which forks out to do various tasks and |also notices the termination of its children by doing a | signal(SIGCHLD, function) |However when I do a ps, I find several defunct processes, apparently |children of my daemon process. How do I prevent such processes being in the |system? What exactly is a defunct process. I am running my processes on a |Sun 4. Thanks. A defunct process is a process that has exited but it's parent has not called wait() to get it's exit status. Somewhere in your function, you need to call wait(). -- Michael Stefanik | Opinions stated are not even my own. Systems Engineer, Briareus Corporation | UUCP: ...!uunet!bria!mike ------------------------------------------------------------------------------- technoignorami (tek'no-ig'no-ram`i) a group of individuals that are constantly found to be saying things like "Well, it works on my DOS machine ..."