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 -
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
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
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