Try this minor change-
kill 9, -$pid;I didn't try it on your stuff but it did work on a simple system("thingy &") test I just tried.
In reply to Re: open (to read) and kill a pipe to a pipe
by Your Mother
in thread open (to read) and kill a pipe to a pipe
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |