diff options
Diffstat (limited to 'os2/eg/alarm.pl')
-rw-r--r-- | os2/eg/alarm.pl | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/os2/eg/alarm.pl b/os2/eg/alarm.pl deleted file mode 100644 index e244df47cc..0000000000 --- a/os2/eg/alarm.pl +++ /dev/null @@ -1,17 +0,0 @@ -sub handler { - local($sig) = @_; - print "Caught a SIG$sig -- shutting down\n"; - exit(0); -} - -$SIG{'ALRM'} = 'handler'; -$SIG{'INT'} = 'handler'; # Ctrl-C pressed -$SIG{'BREAK'} = 'handler'; # Ctrl-Break pressed -$SIG{'TERM'} = 'handler'; # Killed by another process - -print "Starting execution ...\n"; -alarm(10); - -while ( <> ) { -} -print "Normal exit.\n"; |