From: "news.encomix.es" <angel@icsa.es>
Subject: Re: Zombies are haunting me! HELP!
Date: 1998/05/27 [thread overview]
Message-ID: <356bc538.0@dial-in.encomix.es> (raw)
In-Reply-To: 6ken58$9e0@examiner.concentric.net
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 730 bytes --]
William Clark escribi� en mensaje <6ken58$9e0@examiner.concentric.net>...
>Hello there,
>
>I am writing c code on a DEC Alpha box running DEC Unix.
>
>I have created a daemon that forks a child to receive a file
>from a remote process.
>
>Everything works great EXCEPT that I am collecting a zombie
>for each terminated child process.
>
>I am using the signal function with SIGCHLD,SIG_IGN params before
>I start the loop that waits for a sockets connection and forks
>the child.
>
>I thought that would prevent zombies.
>
the best way to prevent zombies is that the father catch the SIGCHLD and in
that funtion you call wait(). That will kill your zombies.
>Any ideas would be appreciated. Thanks in advance.
>
>billc
>
next prev parent reply other threads:[~1998-05-27 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-26 4:00 Zombies are haunting me! HELP! William Clark
1998-05-27 4:00 ` Steve VanDevender
1998-05-28 4:00 ` Serguei Patchkovskii
1998-05-27 4:00 ` news.encomix.es [this message]
1998-05-28 4:00 ` Jeff Denham
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox