-
-
Notifications
You must be signed in to change notification settings - Fork 33k
Make Android streams respect the unbuffered (-u
) option
#138806
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed that there isn't much utility in an unbuffered output streaming mode, but it doesn't hurt to support it just in case it's useful somewhere.
Thanks @mhsmith for the PR, and @freakboy3742 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…38806) Android pipes stdout/stderr to the log, which means every write to the log becomes a separate log line. As a result, most practical uses of stdout/stderr should be buffered; but it doesn't hurt to preserve unbuffered handling in case it's useful. (cherry picked from commit 0ac377f) Co-authored-by: Malcolm Smith <[email protected]>
…38806) Android pipes stdout/stderr to the log, which means every write to the log becomes a separate log line. As a result, most practical uses of stdout/stderr should be buffered; but it doesn't hurt to preserve unbuffered handling in case it's useful. (cherry picked from commit 0ac377f) Co-authored-by: Malcolm Smith <[email protected]>
GH-139108 is a backport of this pull request to the 3.14 branch. |
GH-139110 is a backport of this pull request to the 3.13 branch. |
…138806) (#139110) Android pipes stdout/stderr to the log, which means every write to the log becomes a separate log line. As a result, most practical uses of stdout/stderr should be buffered; but it doesn't hurt to preserve unbuffered handling in case it's useful. (cherry picked from commit 0ac377f) Co-authored-by: Malcolm Smith <[email protected]>
…138806) (#139108) Co-authored-by: Malcolm Smith <[email protected]>
While working on #138805, I updated the Android stream tests to be compatible with unbuffered mode. However, this mode isn't very readable on Android, because it causes lines to be split into multiple log messages. So the Android CI and buildbots are still not using unbuffered mode, but we might as well be compatible with it anyway.
I'm putting this in a separate PR from #138805 because neither change depends on the other.