8.131 sigtrapPragma to enable simple signal handling. Provides two signal handlers that can be installed, or you can install your own handler; also provides options to specify which signals to trap. Ignores requests to trap signals not used in your system's architecture. use sigtrap; # initialize default signal handlers use sigtrap qw(die normal-signals); use sigtrap 'handler' => \handlername, 'normal-signals'; use sigtrap qw(handler handlername normal-signals stack-trace error-signals); 8.131.1 Signal Handler OptionsUsed to specify which handler is to be installed and used for signals installed after the handler:
8.131.2 Signal List OptionsYou can specify your own list of options: or use one of the following built-in option lists:use sigtrap qw(BUS SEGV PIPE ABRT);
8.131.3 Other Options
Copyright © 2001 O'Reilly & Associates. All rights reserved. |
|