in reply to Re^3: Cannot catch ALRM signal for timeout
in thread Cannot catch ALRM signal for timeout
but it still does not work
What doesn't work?
The timeout works fine. I changed
tomy $scheme_pid = open (WORKER, "worker_program < $input |")
my $scheme_pid = open (WORKER, "-|", $^X, '-e', '$|=1; for (1..100) { +print "%d\n", $_*$t; sleep(2) }')
and the timeout triggered. The log file contained only "0".
You'll need to fix the return 1, though. That will only return out of the eval, not out of the sub.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Cannot catch ALRM signal for timeout
by Magice (Novice) on Dec 08, 2009 at 22:28 UTC | |
by almut (Canon) on Dec 08, 2009 at 23:35 UTC | |
by ikegami (Patriarch) on Dec 08, 2009 at 22:45 UTC |