in reply to Re: Re: Re: Killing a Forked Subprocess
in thread Killing a Forked Subprocess
I've just tested it. Actually both of them work. At least on perl 5.6.1.
And also, since you're sending the signal to a process group, don't you need to give it a negative signal value?
Oops. I'm sorry, I missed that. I don't know if it is allowed to write kill '-SIGHUP', .... If not still constants from POSIX.pm can be used instead of numbers:
use POSIX qw(SIGHUP); kill -(SIGHUP), ....;
--
Ilya Martynov
(http://martynov.org/)
|
|---|