MoshiachNow
IS-IT--Management
Hi,
At the beginning of my script I set an interrupt handling:
$SIG{INT} = \&KILL_MON;
. . .
sleep 300;
. . .
sub KILL_MON
{
close LOG;
exit 1;
}
The problem is that if the cntrl-C is received during the long sleep,the sub is not activated till the end of 300 sec.
Is there any way to get an immediate respond to the INT even during sleep ?
Thanks
Long live king Moshiach !
At the beginning of my script I set an interrupt handling:
$SIG{INT} = \&KILL_MON;
. . .
sleep 300;
. . .
sub KILL_MON
{
close LOG;
exit 1;
}
The problem is that if the cntrl-C is received during the long sleep,the sub is not activated till the end of 300 sec.
Is there any way to get an immediate respond to the INT even during sleep ?
Thanks
Long live king Moshiach !