2014-10-06 23:27 GMT+02:00 Scott Prager <[email protected]>:
> 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ñaki Baz Castillo
<[email protected]>

-- 
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.

Reply via email to