Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks!END { if ($pid and (kill 0,$pid)) { system("pkill -TERM -g `ps --pid $pid --no-heading -o '%r'` "); # + Kill everything forked system("pkill -TERM -P $pid "); # Kill spawns kill("TERM", $pid); waitpid $pid, 0; } undef $pid; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: No spawned process left behind
by zentara (Cardinal) on Dec 01, 2012 at 10:21 UTC |