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

From: Buck Evan <buck_at_yelp.com>
Date: Tue, 20 Oct 2015 09:38:12 -0700

Thanks! Trying now...

After bumping to your latest releases, s6-tai64n now shows line-buffered
behavior.

Close enough!

On Tue, Oct 20, 2015 at 1:54 AM, Laurent Bercot <ska-skaware_at_skarnet.org>
wrote:

> 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
> libskarnet.so.2.3.7.0 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.)
>
> --
> Laurent
>
>
Received on Tue Oct 20 2015 - 16:38:12 UTC

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