eval { local $SIG{'ALRM'} = { die("Timeout\n"); }; alarm(60); system('build.sh'); alarm(0); }; if ($@ =~ /^Timeout/) { die("Build timed out\n"); }
In reply to Re: Detecting hung conditions in win32
by jdhedden
in thread Detecting hung conditions in win32
by Zadeh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |