Re: When does a process become defunct

2005-03-28 Thread Ramprasad A Padmanabhan
On Mon, 2005-03-28 at 14:35, Steven Schubiger wrote: > On 28 Mar, Ramprasad A Padmanabhan wrote: > > > I am writing a daemon in perl , where the parent just forks on some > > requests and the children take over. But I found many child processes > > becoming defunct. > > > wait(); > > perldoc -

Re: When does a process become defunct

2005-03-28 Thread John W. Krahn
Ramprasad A Padmanabhan wrote: Hi all, Hello, I am writing a daemon in perl , perldoc -q daemon Also the sections "Complete Dissociation of Child from Parent" and "Handling the SIGHUP Signal in Daemons" in: perldoc perlipc A description of daemons: http://www.enderunix.org/docs/eng/daemon.php And

Re: When does a process become defunct

2005-03-28 Thread Steven Schubiger
On 28 Mar, Ramprasad A Padmanabhan wrote: > I am writing a daemon in perl , where the parent just forks on some > requests and the children take over. But I found many child processes > becoming defunct. > wait(); perldoc -f waitpid -- The trouble with having an open mind, of course, is that

When does a process become defunct

2005-03-27 Thread Ramprasad A Padmanabhan
Hi all, I am writing a daemon in perl , where the parent just forks on some requests and the children take over. But I found many child processes becoming defunct. I am not sure why. I am catching SIG_CHLD alright. To reproduce the problem I have just written a skeleton of my script. The parent