Help for this page

Select Code to Download


  1. or download this
        $SIG{'INT'} = 'CLEANUP';
        sub CLEANUP {
    ...
          exit(1);
        }
    
  2. or download this
        $SIG{$_} = 'CLEANUP' for qw(INT KILL TERM STOP QUIT);