NAME

Interrupt - A simple module to easily incorporate signal handling into perl code


SYNOPSIS

  use Interrupt;
  $SIG{'INT' } = \&interrupt;     
  $SIG{'QUIT'} = \&interrupt;
  $SIG{'HUP' } = \&interrupt;     
  $SIG{'TRAP'} = \&interrupt;
  $SIG{'ABRT'} = \&interrupt;     
  $SIG{'STOP'} = \&interrupt;
  $SIG{'IOT'}  = \&interrupt;
  $SIG{'TERM'} = \&interrupt;
  $SIG{'KILL'} = \&interrupt;


DESCRIPTION

Interrupt gives simple handling of signals. It gives a graceful return when a user issues any sort of signal to exit.


COPYRIGHT

License is granted to reuse and modify this software under the same terms as Perl itself.

The author thanks Jason Fink <jrf@diverge.org> and Jeff Rowan <jrowan@visi.net> for the original code and idea that formed this module.


PLUG

Check out Systhug: http://www.systhug.com