[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pfork()


On Mon, Aug 17, 1998 at 02:32:55PM +0200, Jo Even Skarstein wrote:
> And one other thing about Pfork, when the child exits it leaves a zombie.
> What should I do to get rid of this? My code looks something like this:

Use Pwaitpid(), either directly or in a handler for SIGCHLD.  A child
which exits becomes a zombie if the parent hasn't yet learned the child
exited. The zombie dies if the parent dies, or if the parent learned
about it's "death" with Pwait()/Pwaitpid().



Thomas Binder (Gryf @ IRCNet)  gryf@hrzpub.tu-darmstadt.de
PGP-key available on request!  binder@rbg.informatik.tu-darmstadt.de

Attachment: pgpHjtZ4rblA0.pgp
Description: PGP signature