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 #743

Merged

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 process_finalize, since that could cause us to close a handle that no longer belongs to the process.

See: HaxeFoundation/neko#300

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 `process_finalize`, since that could
cause us to close a handle that no longer belongs to the process.
@Simn Simn merged commit 87fe26c into HaxeFoundation:master Jan 16, 2025
10 checks passed
@tobil4sk tobil4sk deleted the fix/process-stdin-close-windows branch January 16, 2025 13:48
@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