Date: Thu, 31 Oct 96 14:15:02 +0100 From: garyj@frt.dec.com To: ormonde@trem.cnt.org.br (Rodrigo Ormonde) Cc: hackers@freebsd.org Subject: Re: Zombie processes Message-ID: <9610311315.AA16026@cssmuc.frt.dec.com> In-Reply-To: Message from ormonde@trem.cnt.org.br (Rodrigo Ormonde) of Thu, 31 Oct 96 10:01:15 -0300.
next in thread | raw e-mail | index | archive | help
ormonde@trem.cnt.org.br writes: > Hi. > > I'm writing a server process that opens a socket for listen and every time > a new connection arrives the process is forked and the child deals with the > client. > Everything is working fine, except for the fact that when the child > processes exit they become zombies. Every time a new connection is establishe -d > and finished there is a new zombie process. I can't execute a wait() on the > parent process because it has to listen to new connections and can't be block -ed > on the wait() call. > Is there any way to remove the zombie process from the system without > blocking the parent process ? > > Please send answers directly to me, I'm not on the list. > > Thanks in advance. try using a handler for SIGCHLD and do the wait there. It might be even better to use waitpid. --- Gary Jennejohn (work) gjennejohn@frt.dec.com (home) Gary.Jennejohn@munich.netsurf.de (play) gj@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9610311315.AA16026>