Is there any safe way of print to STDOUT inside a signal?
something like this
alarm 10; $SIG{ALRM} = \&Finish; sub Finish { print "Timeout reached"; }
does not work in Linux Debian.
Thanks!
In reply to Print inside SIGNALS by pedrete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |