in reply to Re: timeout problem with alarm
in thread timeout problem with alarm
Instead of setting $SIG{ALRM} : local $SIG{ALRM} = sub { die "alarm" }; try something like the following: use POSIX qw(SIGALRM); POSIX::sigaction(SIGALRM, POSIX::SigAction->new(sub { die "alarm" })) or die "Error setting SIGALRM handler: $!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: timeout problem with alarm
by Anonymous Monk on Jul 13, 2005 at 10:04 UTC | |
by Limbic~Region (Chancellor) on Jul 13, 2005 at 12:42 UTC |