in reply to Re^2: cmd timeout
in thread cmd timeout
You might need to give the process chance to flush its buffers. I know, a sleep is usually a sign of a suspcious hack.sub { kill 'INT', $pid; sleep 1; # Yield the CPU close $process; die "timeout\n" };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: cmd timeout
by ikegami (Patriarch) on Apr 07, 2010 at 15:08 UTC |