perl5.001 patch.1f
[p5sagit/p5-mst-13.2.git] / pod / modpods / sigtrap.pod
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>.