Skip to content

Fix hang in Linux process termination handler #33

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 1 commit into from
Apr 30, 2025

Conversation

jakepetroules
Copy link
Contributor

Calling waitid inside the _childProcessContinuations lock can cause deadlocks in setting up the termination handlers of one process while waiting for another to complete. Instead, only hold the lock when the continuations map is actually being accessed.

Calling waitid inside the _childProcessContinuations lock can cause deadlocks in setting up the termination handlers of one process while waiting for another to complete. Instead, only hold the lock when the continuations map is actually being accessed.
Copy link
Contributor

@iCharlesHu iCharlesHu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@iCharlesHu iCharlesHu merged commit 22910c8 into main Apr 30, 2025
20 checks passed
@jakepetroules jakepetroules deleted the linux-termination-hang branch April 30, 2025 22:20
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.

3 participants