I would not mess with the signal handling part. You're reinventing a particularly thorny wheel.
Oops sorry for the mixed metaphor.
I would recommend using a module like Parallel::Forkmanager and let the children timeout on their own internally.
Update: formatting
non-Perl: Andy Ford
In reply to Re: signal handler question
by andyford
in thread signal handler question
by yogi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |