Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llmnrd: set stdout to line buffering #28

Merged
merged 1 commit into from
Feb 3, 2019

Conversation

mpvader
Copy link
Contributor

@mpvader mpvader commented Feb 3, 2019

See commit msg. Thanks again for the great project. And if you know a way to get zeroconf name resolution on Android / Chrome, I'll be grateful. I found it to not work, not with llmnr, and not with mDNS:

https://bugs.chromium.org/p/chromium/issues/detail?id=405925&desc=2

The log output of llmnrd works well when operated from a terminal; but not when its
stdout is piped to a log-file or -tool; due to buffering:

   By default, stdout is buffered (line buffered if connected to a
   terminal), and stderr is unbuffered. [1]

Changing stdout to line buffering fixes this.

[1] https://www.gnu.org/software/libc/manual/html_node/Buffering-Concepts.html
@tklauser tklauser merged commit fdf702e into tklauser:master Feb 3, 2019
@tklauser
Copy link
Owner

tklauser commented Feb 3, 2019

Thanks!

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.

2 participants