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

[std] Prevent process stdin being closed twice #300

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

tobil4sk
Copy link
Member

When running process_stdin_close, the handle is made available again and may be reused in another part of the program. This means that it is not safe to rerun CloseHandle in free_process, since that could cause us to close a handle that no longer belongs to the process.

When running `process_stdin_close`, the handle is made available again
and may be reused in another part of the program. This means that it is
not safe to rerun CloseHandle in free_process, since that could cause us
to close a handle that no longer belongs to the process.
@Simn Simn merged commit 23012db into HaxeFoundation:master Jan 16, 2025
16 checks passed
@tobil4sk tobil4sk deleted the fix/processes-windows branch January 16, 2025 13:47
@skial skial mentioned this pull request Jan 17, 2025
1 task
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