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 - 08:54:29 UTC