in reply to Protection from zombies

Can you strace the parent process and figure out if it's stuck in read() or wait()?

Also, what is the particular command? Perhaps it fails to close STDOUT or STDERR under some circumstances?

Replies are listed 'Best First'.
Re^2: Protection from zombies
by nomis80 (Sexton) on May 17, 2005 at 12:07 UTC
    Not really. I can't reproduce the behavior unless I'm running as a CGI. The particular command is a shell script living in /etc/init.d.
      You can attach to an existing process with "strace -p ###".

      Can you give us more information about the init.d script?

      Try replacing the perl script with a shell script that runs strace on the original script, saving the output somewhere where you can look at it later.