Predefined Signal Lists
The sigtrap pragma has a few built-in lists of signals to trap:
normal–signalsThese are the signals a program might normally expect to encounter, which, by default, cause it to terminate. They are the
HUP,INT,PIPE, andTERMsignals.error–signalsThese are the signals that usually reflect a serious problem with the Perl interpreter or with your program. They are the
ABRT,BUS,EMT,FPE,ILL,QUIT,SEGV,SYS, andTRAPsignals.old–interface–signalsThese are the signals that were trapped by default under an older version of
sigtrap’s interface. They areABRT,BUS,EMT,FPE,ILL,PIPE,QUIT,SEGV,SYS,TERM, andTRAP. If no signals or signals lists are passed touse sigtrap, this list is used.
If your platform does not implement a particular signal named in the predefined lists, that signal name will be silently ignored. (The signal itself can’t be ignored because it doesn’t exist.)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access