----- Original Message ----- From: "Bob Showalter" <[EMAIL PROTECTED]> To: "'Ahmed Moustafa'" <[EMAIL PROTECTED]>; "Perl beginners" <[EMAIL PROTECTED]> Sent: Wednesday, August 14, 2002 10:08 AM Subject: RE: How does ZOMBIE/defunct affect the system?
> > -----Original Message----- > > From: Ahmed Moustafa [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, August 14, 2002 11:45 AM > > To: Bob Showalter; 'Sudarshan Raghavan'; Perl beginners > > Subject: Re: How does ZOMBIE/defunct affect the system? > > > > ... > > All I need to do is to reap the dead processes without > > blocking the program. > > (Also I don't want to ignore the children with using $SIG{CHLD} = > > 'IGNORE';). > > > > Then you should call wait() inside a SIGCHLD handler. That's > what SIGCHLD is for. See the examples in perldoc perlipc. When I put something in the SIGCHLD handler, the calls to system() return 'No child processes'! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]