home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / MacPerl 5.0.3 / MacPerl Source ƒ / MacPerl5 / pod / modpods / sigtrap.pod < prev    next >
Encoding:
Text File  |  1994-12-26  |  549 b   |  20 lines  |  [TEXT/MPS ]

  1. =head1 NAME
  2.  
  3. sigtrap - Perl pragma to enable stack backtrace on unexpected signals
  4.  
  5. =head1 SYNOPSIS
  6.  
  7.     use sigtrap;
  8.     use sigtrap qw(BUS SEGV PIPE SYS ABRT TRAP);
  9.  
  10. =head1 DESCRIPTION
  11.  
  12. The C<sigtrap> pragma initializes some default signal handlers that print
  13. a stack dump of your Perl program, then sends itself a SIGABRT.  This
  14. provides a nice starting point if something horrible goes wrong.
  15.  
  16. By default, handlers are installed for the ABRT, BUS, EMT, FPE, ILL, PIPE,
  17. QUIT, SEGV, SYS, TERM, and TRAP signals.
  18.  
  19. See L<perlmod/Pragmatic Modules>.
  20.