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

Replace handle atomically in IO::FileDescriptor#close on Windows #15165

Merged

Conversation

HertzDevil
Copy link
Contributor

The spec introduced in #14698 fails on Windows very rarely (e.g. https://github.com/crystal-lang/crystal/actions/runs/11681506288/job/32532033082, https://github.com/crystal-lang/crystal/actions/runs/11642959689/job/32449149741). This PR seems to fix that; other platforms already do the same in #system_close, and double close remains an error.

@HertzDevil HertzDevil added kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:windows Windows support based on the MSVC toolchain / Win32 API topic:stdlib:files labels Nov 6, 2024
@straight-shoota straight-shoota added this to the 1.15.0 milestone Nov 6, 2024
@straight-shoota straight-shoota merged commit de2d02e into crystal-lang:master Nov 7, 2024
69 checks passed
@HertzDevil HertzDevil deleted the bug/windows-file-close branch November 7, 2024 14:35
CTC97 pushed a commit to CTC97/crystal that referenced this pull request Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:windows Windows support based on the MSVC toolchain / Win32 API topic:stdlib:files
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants