[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Built-in printf Sits Awkwardly with UDP.

From: Ben Pfaff
Subject: Re: Built-in printf Sits Awkwardly with UDP.
Date: Thu, 21 Jul 2011 16:06:19 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Andre Majorel <address@hidden> writes:

> On 2011-07-20 14:34 +0100, Ralph Corderoy wrote:
> If standard output is a log file, log entries could remain
> latent for a very long time.
> The buffering mode we really want is buffered with a forced
> flush at reasonable intervals, E.G. one second after the last
> write. Unfortunately, there's no such thing in stdio.

That sounds like a bad design for a log file anyhow.  Log entries
should get flushed quickly, otherwise you lose the last few log
entries before a segfault or signal and have fewer clues about
the cause.
Ben Pfaff 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]