----- Original Message -----
From: Kelvin Wu <[EMAIL PROTECTED]>
Date: Monday, December 20, 2004 0:36 am
Subject: KILL INT can not wake up $SIG{INT}

> Hi list,
Hello

> 
> Anyone has such experience? KILL INT pid cannot wake up $SIG{INT}  
> sub{}.
Only on Window's, but then again I don't think signals are a native 
implementation in WinPerl.

> 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.
Well sure, in example you have provided your entire program will exit after 
SIGALRM.

> does system call cause the problem?
It shouldn't. Post more of your code if you need more help.

HTH,
mark G.

> 
> Thanks.
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to