good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Forking and writing to filesby coec (Chaplain) |
on May 13, 2004 at 02:09 UTC ( [id://352969]=note: print w/replies, xml ) | Need Help?? |
You could try adding a non-blocking wait and looping until each child successfully writes to the output file. I dimly recall using semaphores to over come a similar problem when I did some C programming about 12 years ago. CC
In Section
Seekers of Perl Wisdom
|
|