I know about waitpid() that should fix that but am unsure of its correct use. Where to put it?
Put that into the signal handler for $SIG{CHLD} in the parent. This is the signal a process gets if a subprocess goes away. See perlipc.
In reply to Re^3: Signal handler - correct way to hijack TSTP
by shmem
in thread Signal handler - correct way to hijack TSTP
by seki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |