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?
In reply to Re: exec creating zombie processes
by ELISHEVA
in thread exec creating zombie processes
by jaiieq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |