Except that, of course, stderr is unbuffered and stdout is line buffered.
I would expect an unbuffered stream to noticed the (out of band) closure
of its file descriptor before a buffered one.
I concede that there is still something wrong here as stdout should
be line buffered when it refers to a terminal and yet the error is not
discovered in the fprintf (which should of course flush the stream due
to the newline). Mind you, I have been mistake before ... ;-)
Cheers,
Stephen Stephen.Rothwell@canb.auug.org.au
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html