You forgot to close the $wh on parent side, so the pipe stays open forever.
A close $wh; before the while (<$rh>) ought to fix it.
Oh, and please do note that the writes aren't atomic—no guarantee the reports won't intermingle.
In reply to Re: forking script hangs
by oiskuu
in thread forking script hangs
by trippledubs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |