Thanks for the hint about Proc::Simple. I was hoping that maybe I could remove the 'sleep 1' in the parent process but unfortunately that is not the case. Still need to wait a bit before calling $proc->poll().
For the moment I'll stay with manually doing the forking but if there's a bug or otherwise strange behavior it's good to know I can easily replace it with a generic solution.
In reply to Re^4: fork, but not waiting on children
by Monk::Thomas
in thread <solved> fork, but not waiting on children
by Monk::Thomas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |