Re: Out of ptys

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 26 Aug 1998 19:23:48 +0100 (BST)


> This shows the problem I reported to the glibc folks about a year
> go. Note that both functions, good() and bad(), are identical except
> for the fds that I close.

Thats correct behaviour. If you look at my example you will notice I
purposefully called fflush() and checked its return value too. stdio may
report write errors on the fflush for buffered streams, thats quite allowed.

stderr is unbuffered, stdio is buffered.

Alan

-
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