in reply to Check if forked process is dead
When you kill a process (in Unix), it enters a “zombie” state so that you can rendezvous with it (via waitpid) and collect its status. You are obligated to do so. The process-table entry does not disappear until you wait; hence, until then, it continues to “exist.”
Do not “pause for a specified interval” after killing a process. After you have fired your bullet, wait for the corpse to hit the ground (and disappear). No one likes a roomful of zombies.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Check if forked process is dead
by petr999 (Acolyte) on Mar 02, 2011 at 22:20 UTC | |
by Eliya (Vicar) on Mar 02, 2011 at 23:10 UTC | |
by petr999 (Acolyte) on Mar 03, 2011 at 01:42 UTC | |
by locked_user sundialsvc4 (Abbot) on Mar 03, 2011 at 20:46 UTC |