Skip to content

Conversation

@anmenaga
Copy link

@anmenaga anmenaga commented Apr 20, 2023

PR Summary

std::process::Command hangs in child.wait() if the subprocess prints more than 64K characters to stdout.
The fix is to read the output (therefore making space for the child process to put put more data) before waiting for the child process exit.

Verified the fix by running pwsh with Get-DscResource | ConvertTo-Json -Depth 3, which was hanging previously.

@anmenaga anmenaga requested a review from SteveL-MSFT April 20, 2023 22:22
@SteveL-MSFT SteveL-MSFT merged commit ce6e0d6 into main Apr 21, 2023
@SteveL-MSFT SteveL-MSFT deleted the 64KOutputFix branch August 3, 2023 17:29
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.

3 participants