Re: daemontools tai64n is unbuffered, s6-tai64n is fully buffered

From: Laurent Bercot <>
Date: Tue, 20 Oct 2015 10:54:29 +0200

On 20/10/2015 02:16, Buck Evan wrote:
> My canonical slowly-printing example is:
> yes hello world | pv -qL 10 | tai64n
> Under daemontools classic you'll see the output gradually appear character
> by character, with timestamps.
> Under s6, this seems to hang and I ctrl-c it. I'm sure if I waited a good
> long while it would print, but this shows the difference in usability.

  s6-tai64n flushes its stdout before going back to read its stdin again.
It will never keep unflushed logs in memory.

  You are very likely using a version of s6-tai64n linked against a shared or earlier, which sometimes flushes stdout
incorrectly. Please grab the latest skalibs and recompile. (Or use the
static version of libskarnet, which does not exhibit the bug.)

Received on Tue Oct 20 2015 - 08:54:29 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC