Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Killing process group run with IPC::Open3by ikegami (Patriarch) |
on Feb 03, 2012 at 00:06 UTC ( [id://951562]=note: print w/replies, xml ) | Need Help?? |
I'm guessing the process to which you send a "negative signal" must be the head of a process group. Testing corroborates.
You could solve your problem by using the following:
This code works with older version of Perl (e.g. Perl 5.10), but I'm getting an "illegal seek" error with newer version of Perl. I'll look into it. Especially since I think it might be in the code I wrote for open3 X_X. PS — open3(...) or die $!; is wrong. open3 dies on error rather than returning false.
In Section
Seekers of Perl Wisdom
|
|