Date: Thu, 26 May 2005 15:44:29 +0200
From: Harald Geyer <Harald(_dot_)Geyer(_at_)gmx(_dot_)at>
| Please see http://bugs.debian.org/143485 for the whole story.
OK, no wonder I hadn't see it... I will take a look.
| Hm, ok then this probably isn't that much of an issue as I thought before.
| Is fprintf(stderr, "...") ok? After all it should be unbuffered?
No, stdio isn't OK, even if supposedly unbuffered. There's too much
state and context kept in there. Even if it works on one implementation
of libc that manages output to an unbuffered FILE * without touching (as
in altering) the FILE * at all, there's no guarantee than any other
implementation will do the same thing.
write(2, "string", N) on the other hand is just fine.
Nmh-workers mailing list