Use an alarm. If you need timeouts accurate to a millisecond then I'd suggest ualarm from Time::HiRes but that's probably overkill here.
In reply to Re: Catching processes stuck in an apparent loop
by hipowls
in thread Catching processes stuck in an apparent loop
by powerhouse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |