What signals will cause a Perl program to stop running if their %SIG entries are not explicitly set?
What signals will cause a Perl program to stop running if their %SIG entries
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The answer is platform dependent. To see the default behavior of each signal on your own system, download the
Signals::XSIGmodule (you don’t need to install it) and run the programspike/analyze_default_signal_behavior.pl(with no arguments). Or just download and run the script from here.Note that some signals cannot be trapped by your program even if you do install a
%SIGhandler. This is also system dependent but usually includes at leastSIGKILLandSIGSTOP.