Skip to content

Flush output after printing full set of registers - #111

Open
rjoz wants to merge 1 commit into
epsilonrt:devfrom
rjoz:flush-output
Open

rjoz wants to merge 1 commit into
epsilonrt:devfrom
rjoz:flush-output

Conversation

@rjoz

@rjoz rjoz commented Oct 31, 2026

Copy link
Copy Markdown

Flush stdout after printing every full set of values.

Addresses issue 98 that piped or redirected output arrives in fits and starts every couple of minutes because it is buffered. With this fix, piped commands (or logfiles, etc) receive every set of register values right after it is emitted by mbpoll.

The fix only adds a single line of code (plus a comment) to mbpoll.c and should not impact interactive output nor have any other side-effects.

Implemented and tested in mbpoll 1.5-4 on macOS 15.8.2 (Intel).
Should work universally because fflush is used elsewhere in the code already and apparently does not cause problems.

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.

1 participant