-
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
Stdout is Missing When Executed as Subprocess #4890
Comments
You did not really say it, but this is a Node.js script. It does work on my machine, though: PS C:\me> node --version
v20.10.0
PS C:\me> node a1.js
null git version 2.44.0.windows.1 |
What is your Windows version? I tried it on both Win11 22621 and 26090 versions, neither worked. |
Well, I reinstalled Windows and it worked. I will continue to search for the cause of the problem. This issue is closed first. |
After I installed the isolated domain software (DACS) provided by my company, the issue recurred. I have reported this issue to the author of DACS and will continue to follow up on this issue. |
I found that the Windows Filtering Platform driver provided by the security software seems to have changed the buffer type of stdout from _IONBF to _IOFBF or _IOLBF, causing stdout to fail without manually calling fflush(stdout) when the buffer is not full. The contents of the output buffer. I will file a PR to manually call fflush(stdout) when git exits. |
/add relnote bug Apparently some anti-malware programs fiddle with the mode of The workflow run was started |
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>
Setup
defaults?
to the issue you're seeing?
No
Details
PowerShell
I'm encountering an issue when executing Git as a subprocess, where I'm unable to receive any output.
Here's the code that fails to produce output:
However, the following code does produce output:
This issue is not specific to Node.js. I’ve encountered the same problem when executing Git as a subprocess using other languages like TCL/TK.
This issue is causing nearly all Git plugins to fail, including the official Git-Gui.
Any help or guidance on this issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered: