in reply to Protection from zombies

The code looks OK to me. Are you sure the child is a zombie? It shows up in the "defunct" process state? If it's not a zombie but just hung, see the advice elsewhere in this thread.

Replies are listed 'Best First'.
Re^2: Protection from zombies
by nomis80 (Sexton) on May 17, 2005 at 12:05 UTC
    Yes I'm sure it's a zombie. ps shows its state as Z and there is <defunct> after the command name.