forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
common-main.c: fflush stdout buffer when exit #4901
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 task
dscho
approved these changes
Apr 8, 2024
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.
Great finding, and obviously-good fix!
You may want to follow the advice in https://github.blog/2022-06-30-write-better-commits-build-better-projects/ to align the commit message's style with Git's conventions.
chengzhuo5
force-pushed
the
main
branch
3 times, most recently
from
April 8, 2024 08:41
a80c804
to
4df1ba8
Compare
By default, the buffer type of Windows' `stdout` is unbuffered (_IONBF), and there is no need to manually fflush `stdout`. But some programs, such as the Windows Filtering Platform driver provided by the security software, may change the buffer type of `stdout` to full buffering. This nees `fflush(stdout)` to be called manually, otherwise there will be no output to `stdout`. Signed-off-by: MinarKotonoha <chengzhuo5@qq.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 12, 2024
github-actions bot
pushed a commit
to git-for-windows/build-extra
that referenced
this pull request
Apr 12, 2024
Apparently some anti-malware programs fiddle with the mode of `stdout` which [can lead to problems because expected output is missing](git-for-windows/git#4890), which [was fixed](git-for-windows/git#4901). Signed-off-by: gitforwindowshelper[bot] <gitforwindowshelper-bot@users.noreply.github.com>
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 12, 2024
Thank you @chengzhuo5 for going the extra mile to fix the issue! |
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 12, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 12, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 12, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 12, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 12, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 12, 2024
dscho
added a commit
that referenced
this pull request
Apr 14, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 15, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 15, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 15, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 16, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 16, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 17, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 17, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 17, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 8, 2024
dscho
added a commit
that referenced
this pull request
Oct 8, 2024
dscho
added a commit
that referenced
this pull request
Oct 8, 2024
dscho
added a commit
that referenced
this pull request
Oct 8, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 9, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 9, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 9, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 9, 2024
dscho
added a commit
that referenced
this pull request
Oct 9, 2024
dscho
added a commit
that referenced
this pull request
Oct 9, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 10, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 11, 2024
dscho
added a commit
that referenced
this pull request
Oct 11, 2024
dscho
added a commit
that referenced
this pull request
Oct 11, 2024
dscho
added a commit
that referenced
this pull request
Oct 20, 2024
dscho
added a commit
that referenced
this pull request
Oct 21, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 21, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 21, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 22, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 22, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 22, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 22, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 22, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 22, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 25, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 25, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 25, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 30, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Nov 1, 2024
git-for-windows-ci
pushed a commit
that referenced
this pull request
Nov 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.