in reply to Re: Forkin around
in thread Forkin around
At first I assumed that the reason I did not see multiples when printing to STDOUT was that STDOUT was disasociated in the children. That conclusion was incorrect.
It turns out that each child process was indeed sending the data to the output file attached to 'BAD'. But not in any way that was immediately apperent to me. What was happening was that I did not turn on autoflushing for those FH's. When the children recieved dupes of the open FH's and then closed, the FH's were flushed. So, essentially each child was flushing the FH and the output went were it was supposed to, the file.
I added autoflush for each output FH and the problem went away. I just popped in here to update this when I saw your response.
Thanks for your input though, I was starting to wonder why I had no response.
|
|---|