Skip to content

Flush Done lines when stdout is a pipe - #62

Open
quantz8a wants to merge 1 commit into
antirez:mainfrom
quantz8a:fix/25-line-buffer-stdout
Open

quantz8a wants to merge 1 commit into
antirez:mainfrom
quantz8a:fix/25-line-buffer-stdout

Conversation

@quantz8a

@quantz8a quantz8a commented Sep 12, 2026

Copy link
Copy Markdown

Summary

  • Line-buffer stdout at startup so interactive Done -> ... completion lines flush immediately when stdout is a pipe (non-TTY).

Fixes #25

Test plan

setvbuf(stdout, NULL, _IOLBF, 0) so interactive completion messages
like "Done -> ..." reach piped clients immediately (antirez#25).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Interactive session doesn't emit 'Done ->' line when stdout is a pipe (non-TTY)

1 participant