in reply to forking script hangs
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: forking script hangs
by afoken (Chancellor) on Jun 10, 2015 at 21:46 UTC | |
by trippledubs (Deacon) on Jun 11, 2015 at 04:33 UTC |