in reply to Re^5: How to timeout if a call to an external program takes too long
in thread How to timeout if a call to an external program takes too long
Now I'm confused. In the second example, control was returned to the script after the 5 seconds. The external process continues, but as you say, that's a different problem,
But in the first example, whilst the signal handler was invoked after 5 seconds, the command completed ('yawn' was returned) and that did not happen until the external 10 second sleep completed?
Ie. Unless I am interpreting the output you posted incorrectly, the first example shows that the script cannot continue until the external command completes, even though the signal handler was invoked earlier than that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: How to timeout if a call to an external program takes too long
by kyle (Abbot) on Aug 30, 2007 at 12:17 UTC | |
by BrowserUk (Patriarch) on Aug 30, 2007 at 12:38 UTC | |
by kyle (Abbot) on Aug 30, 2007 at 14:47 UTC |