From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,782002c31f9c8f6c X-Google-Attributes: gidfee84,public From: "news.encomix.es" Subject: Re: Zombies are haunting me! HELP! Date: 1998/05/27 Message-ID: <356bc538.0@dial-in.encomix.es>#1/1 X-Deja-AN: 356908347 References: <6ken58$9e0@examiner.concentric.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: Telefonica Transmision de Datos Newsgroups: comp.unix.osf.osf1 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 >