On Monday, October 6, 2014 5:55:40 PM UTC-4, Iñaki Baz Castillo wrote: > > 2014-10-06 23:27 GMT+02:00 Scott Prager <[email protected] > <javascript:>>: > > Technically, I could use a separate pipe and callback for stderr, but I > need > > the order of outputs preserved. When I attempted to use separate pipes > (for > > much larger input than that gist), I found the errors clumped together > and > > inconsistent the regular output. > > Call to fflush() after each log/print/puts. > > http://man7.org/linux/man-pages/man3/fflush.3.html >
I'm on the reading end of the pipe and the program I need to capture the output of really is Gnu Make, or a user-supplied alternative. Plus, the function that processes the output is meant to run with the complete output. While I've refactored it to work in a reentrant fashion, if it ran on every line of output, it might start processing the output slower than make can produce it. > > > > > -- > Iñaki Baz Castillo > <[email protected] <javascript:>> > -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
