Skip to content

Close a handle inside a lock #257

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

Merged
merged 2 commits into from
Aug 11, 2025
Merged

Conversation

dkovba
Copy link
Contributor

@dkovba dkovba commented Aug 9, 2025

Improves #245. A potential deadlock risk was not proven. This PR moves the closing operation inside the lock to prevent leaking an unclosed handle in case of an error.

@dkovba dkovba requested review from crosbymichael and dcantah August 9, 2025 01:30
@crosbymichael crosbymichael merged commit 7b00f39 into apple:main Aug 11, 2025
2 checks passed
@dkovba dkovba deleted the dkovba/close-socket branch August 14, 2025 22:06
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