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" };
In reply to Re^3: cmd timeout
by cdarke
in thread cmd timeout
by pronini
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |