News for hackers. Stuff that matters.
Re:How to write to stderr so people will like you by j_baker on Friday April 16, 2010 @02:31PM (#1271449)
"(Note that programs that run other programs need to do more than just this; they need to flush stdout and perhaps stderr before they start another program.)"

Could someone explain exactly why this is?

Re:How to write to stderr so people will like you by mbreese on Friday April 16, 2010 @02:38PM (#1271465)
Because you want to make sure your output is sent before the possible output from a child program. This is the same principle as from the article.
Re:How to write to stderr so people will like you by lil_cain on Friday April 16, 2010 @02:38PM (#1271471)
Because if they start another program without flushing their buffers, you'll have the output from the new program before the output from the old program, despite the fact that chronologically, the errors were generated before it started.