nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] outstanding patches

2005-05-26 07:56:36
    Date:        Thu, 26 May 2005 15:44:29 +0200
    From:        Harald Geyer <Harald(_dot_)Geyer(_at_)gmx(_dot_)at>
    Message-ID:  
<E1DbIez-0000IX-HU(_at_)chello080108070152(_dot_)13(_dot_)11(_dot_)univie(_dot_)teleweb(_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.

kre




_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>