Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
RE: Re: I got zombiesby reptile (Monk) |
on Aug 08, 2000 at 05:53 UTC ( [id://26722]=note: print w/replies, xml ) | Need Help?? |
There is no foreground process. It's using setsid() to disassociate the child from the parent, then the parent exits. The remaining process (the child) forks a process it's the parent of and they both do their own thing. I should have just left out the setsid() because you're apparently confused by what I intended to do with it. I wasn't sure if it was pretinent or not, so I mentioned it. I'm doing something like this:
They both stay around in an infinite loop doing whatever they're supposed to do. I have to kill them both or whichever one I don't kill sticks around. Like from ps auxf:
If I kill 26464, 26465 doesn't go away.
In Section
Seekers of Perl Wisdom
|
|