Thread::Signal
Starts a special signal handler thread to reliably run signal handlers.
All signals are handed to this thread, which runs the associated
$SIG{
signal
}
handlers for them.
use Thread::Signal;
$SIG{HUP} = handler;
Get Perl in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.