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

Fixed invoke_command to support resources with more than 64 char output #68

Merged
merged 1 commit into from
Apr 21, 2023

Conversation

anmenaga
Copy link
Collaborator

@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.

@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.

2 participants