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 >