The following rearrangement may help,
That lets you draw down the buffer, making room for the other kids to print. It would also do no harm to try autoflushing the PARENT handle.# ... the loop close( PARENT ); print "parent received: "; print '.' while <CHILD>; print "\n"; close( CHILD ); while( %pid ) { reap() }
After Compline,
Zaxo
In reply to Re: Wait hangs when pipe is full
by Zaxo
in thread Wait hangs when pipe is full
by xiper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |