On Sun, Jan 27, 2019 at 1:56 PM Sean MacLennan <seanm_at_seanm.ca> wrote:
> So it seems that s6-log does not like buffered output. I modified
> doorknob to vsnprintf into a buffer and then tried various output
> methods.
s6-log (or another program) has no idea about your buffered output.
Output cannot be read until it has been written, and data still in a
buffer has not been written. Change your program to flush after
messages. It is common for stdio to buffer stdout differently
depending on whether it is a terminal and to not make that distinction
for stderr. In your terminal, compare "doorknob -fs" (stdout as
terminal) to "doorknob -fs | cat" (stdout as pipe) to see the
difference.
PS. You have "dump" twice where I think you mean "dumb", in your
Github description and in your README.
Received on Sun Jan 27 2019 - 19:27:10 UTC
This archive was generated by hypermail 2.3.0
: Sun May 09 2021 - 19:44:19 UTC