Date: Thu, 31 Mar 2005 17:43:47 +1000 From: Peter Jeremy <PeterJeremy@optushome.com.au> To: zean zean <fbsd.hackers@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: the best form to wait the finish of execution of a child... Message-ID: <20050331074347.GF71384@cirb503493.alcatel.com.au> In-Reply-To: <a9e342b5050330120631019b75@mail.gmail.com> References: <a9e342b5050330101771e53d6f@mail.gmail.com> <20050330115132.N76928@skutsje.san.webweaving.org> <a9e342b5050330120631019b75@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 >the recommendation. 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. -- Peter Jeremy
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050331074347.GF71384>