Yes.
I was thinking about a signal problem that a guy had about 6 months ago related to Apple OS X. We were using C and not Perl.
Your one line of code will work at least 99% of the time!
My 2 lines of code may work at a higher probability, but I don't think that it matters at all!
The "right way" to deal with this is to have a CHLD signal handler. And either set that thing to "IGNORE' or a coderef to a subroutine that causes a waitpid loop. $SIG{CHLD}='IGNORE'; is far superior to doing nothing with the CHLD signal.
In reply to Re^5: Best way to kill a child process
by Marshall
in thread Best way to kill a child process
by doylebobs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |