in reply to exec creating zombie processes

Is this your actual code? You are subtracting fork() from $CHILD rather than setting $CHILD to the pid returned by $fork. That would mean that kill 9, $CHILD is in reality calling kill 9, undef and isn't killing anything at all. It would also mean that if ( $CHILD == 0) should be spitting out warnings, but only if you are using use strict; use warnings. Are you?

Replies are listed 'Best First'.
Re^2: exec creating zombie processes
by jaiieq (Novice) on Feb 14, 2011 at 19:42 UTC
    That was a typo, sorry! (And yes I always use use strict and use warnings)