Hi list,
Anyone has such experience? KILL INT pid cannot wake up $SIG{INT} sub{}.
my code is like;
$SIG{INT} = sub {#load pm}
$SIG{ALRM} = sub {print "Driver $pm is going to sleep... bye.\n"; exit;};
the pm actually has a system call to execute something
sub xxx {
`perl xxx.pl`
}
but
my $tmp = kill "INT", $pid; ## it returns number of processes, eg: 1
cannot wake up the $SIG{INT} at all after $SIG{ALRM} has been executed.
does system call cause the problem?
Thanks.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>