Lines Matching refs:signals

31 	elsif ($_ eq 'normal-signals') {
34 elsif ($_ eq 'error-signals') {
38 elsif ($_ eq 'old-interface-signals') {
73 @_ = qw(old-interface-signals);
132 use sigtrap qw(stack-trace old-interface-signals); # equivalent
135 use sigtrap qw(die normal-signals);
136 use sigtrap qw(die untrapped normal-signals);
137 use sigtrap qw(die untrapped normal-signals
138 stack-trace any error-signals);
139 use sigtrap 'handler' => \&my_handler, 'normal-signals';
140 use sigtrap qw(handler my_handler normal-signals
141 stack-trace error-signals);
149 to install. It can be told only to install a handler for signals which
150 are either untrapped or ignored. It has a couple of lists of signals to
151 trap, plus you can supply your own list of signals.
164 installed signals.
170 The handler used for subsequently installed signals outputs a Perl stack
176 The handler used for subsequently installed signals calls C<die>
182 signals. I<your-handler> can be any value which is valid as an
189 B<sigtrap> has a few built-in lists of signals to trap. They are:
193 =item B<normal-signals>
195 These are the signals which a program might normally expect to encounter
199 =item B<error-signals>
201 These signals usually indicate a serious problem with the Perl
205 =item B<old-interface-signals>
207 These are the signals which were trapped by default by the old
209 SEGV, SYS, TERM, and TRAP. If no signals or signals lists are passed to
214 For each of these three lists, the collection of signals set to be
226 listed signals which aren't already trapped or ignored.
231 listed signals. This is the default behavior.
247 Provide a stack trace for the old-interface-signals:
253 use sigtrap qw(stack-trace old-interface-signals);
255 Provide a stack trace on the 4 listed signals only:
265 use sigtrap qw(die normal-signals);
268 signals which are already trapped or ignored:
270 use sigtrap qw(die untrapped normal-signals);
272 Die on receipt one of an of the B<normal-signals> which is currently
274 B<error-signals>:
276 use sigtrap qw(die untrapped normal-signals
277 stack-trace any error-signals);
279 Install my_handler() as the handler for the B<normal-signals>:
281 use sigtrap 'handler', \&my_handler, 'normal-signals';
283 Install my_handler() as the handler for the normal-signals, provide a
284 Perl stack trace on receipt of one of the error-signals:
286 use sigtrap qw(handler my_handler normal-signals
287 stack-trace error-signals);