Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
eval { local $SIG{ALRM} = sub { die "alarm timeout" }; local $SIG{__DIE__} = sub { alarm 0; die @_ }; alarm 2; print "calling"; # This prints out calling, and hangs forever, never printing "done +" $string = unac_string('UTF-8', $string); print "done"; alarm 0; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SIGALRM timeout problem
by tilly (Archbishop) on Mar 27, 2004 at 08:36 UTC |