in reply to Protection from zombies
Update:What I wrote originally (below) is quite incorrect; the child process morphs into the exec'd process, retaining its PID and PPID. I had misconstrued some statements about exec in IPC::Open3. Many thanks++ to sgifford for the correction.
Why do you say the "child has become a zombie"? You've exec'd that process; it is not a child of the parent anymore. The actual child presumably dies peacefully after the exec (assuming the call to exec succeeds, which says nothing about the fate of the exec'd process) and gets reaped automatically when FROM_CHILD is closed.
If by "becoming a zombie" you mean that the exec'd process terminates abnormally, then all you need to do to avoid the idling is to time out the parent.
the lowliest monk
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Protection from zombies
by sgifford (Prior) on May 16, 2005 at 21:58 UTC | |
by mda2 (Hermit) on May 16, 2005 at 22:58 UTC | |
by sgifford (Prior) on May 17, 2005 at 04:05 UTC | |
by nomis80 (Sexton) on May 17, 2005 at 12:40 UTC | |
by nomis80 (Sexton) on May 17, 2005 at 12:50 UTC | |
by kscaldef (Pilgrim) on May 17, 2005 at 17:51 UTC |