the best form to wait the finish of execution of a child...
PeterJeremy at optushome.com.au
Wed Mar 30 23:43:50 PST 2005
On Wed, 2005-Mar-30 16:06:55 -0400, zean zean wrote:
>Dirk-Willem My idea is to avoid all the processes zombies. thanks by
If you just want to avoid zombies and don't care about the return
status, you can set SIGCHLD to SIG_IGN with SA_NOCLDWAIT (see
sigaction(2)) and not have to use wait() at all.
Note that if you don't bother to wait() for children and don't otherwise
keep track of how many children you have, you can run into overload
problems if you start creating children faster than they complete.
More information about the freebsd-hackers