in reply to Re^3: Print inside SIGNALS
in thread Print inside SIGNALS
This code does not work...
alarm 2; $SIG{ALRM} = \&Finish; my $a=<>; sub Finish { print "Timeout reached"; }
This code does not work either...
alarm 2; $SIG{ALRM} = \&Finish; while (1==1){}; sub Finish { print "Timeout reached"; }
So i guess many calls are not interrumptibles... am i right>?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Print inside SIGNALS
by haukex (Archbishop) on Jul 16, 2018 at 20:20 UTC | |
|
Re^5: Print inside SIGNALS
by ikegami (Patriarch) on Jul 17, 2018 at 11:22 UTC | |
by haukex (Archbishop) on Jul 17, 2018 at 11:50 UTC | |
by ikegami (Patriarch) on Jul 17, 2018 at 16:18 UTC | |
by haukex (Archbishop) on Jul 17, 2018 at 18:14 UTC | |
by ikegami (Patriarch) on Jul 18, 2018 at 11:20 UTC | |
|