in reply to command timeout not working
One simple workaround: I tend to fork the child which sends it's output to a temp file, wait in the parent with waitpid and then kill the child from the parent after the timeout expires. You can timeout the waitpid call with alarm() or just call it non-blocking and sleep a second or two between each call.
|
|---|