> From: Errin Larsen <[EMAIL PROTECTED]> > > See that "<defunct>"?! How did my process get a <defunct> status? Is > > that a Solaris-fancy way of saying "zombie-child"? > > I believe so.
I do as well. > > > The above explains > > why my (kill 0 => $pid) isn't working the way I expect, but How can I > > kill the kid. The <defunct> child process finally dies if I kill the > > parent (original dummy_monitor) script. Does this mean that my setsid > > line in my original script is not working correctly? I'm confused > > here. > > I believe you are supposed to wait()/waitpid() on your children. Or > install a $SIG{SIGCHLD} handler that reaps the children. > That is what i was thinking. Essentially a process that has children wants to hear from them (and will stop sending money if it doesn't). Generally this is done by having the parent "wait" for the child until it notifies the parent that it is gone, generally the parent knows that when it doesn't have any more children it is done (or is to spawn more, etc.). > I haven't used Perl under any Unix for years so I can't give you the > details. perldoc perlipc should help. > Yes, as well as, perldoc -f wait perldoc -f waitpid > Jenda http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>