Subject: | Optionally use POSIX::sigaction for unsafe signals |
By default, perl is using safe signals, which means that some operations won't be interrupted by signals, including SIGALRM. Details can be seen here: https://metacpan.org/pod/perlipc#Deferred-Signals-Safe-Signals
A workaround here is to use unsafe signals here, e.g. by using POSIX::sigaction instead of a normal Perl signal handler. It would be nice if there was an option in Time::Out to use POSIX::sigaction. Of course not as the default, as it's "unsafe" after all.