Open p5pRT opened 20 years ago
The following small example shows that hitting a Control/C does not break through a sleep so if you have a long sleep the program can not be aborted when you have a SIGINT handler.
$SIG{INT} = sub
{
die;
};
print "Note you can't interrupt the sleep\n";
print "Please hit CTRL/C within 10 secs\n";
sleep 10;
print "Too late. Sleep ended.\n";
exit( 0 );
At 20:50 +0000 12/22/03\, "Grieb\, Terry" (via RT) wrote:
The following small example shows that hitting a Control/C does not break through a sleep so if you have a long sleep the program can not be aborted when you have a SIGINT handler.
$SIG\{INT\} = sub \{ die; \}; print "Note you can't interrupt the sleep\\n"; print "Please hit CTRL/C within 10 secs\\n"; sleep 10; print "Too late\. Sleep ended\.\\n"; exit\( 0 \);
Must be a Windows issue. Works fine on Linux and MacOSX from 5.6.0 through 5.9.0.
Liz
Migrated from rt.perl.org#24738 (status was 'open')
Searchable as RT24738$