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

Simplify detached process thread logic #6467

Merged
merged 1 commit into from Nov 16, 2020

Conversation

headius
Copy link
Member

@headius headius commented Nov 16, 2020

In #6466 we see that the thread from a Process::detach is raising
an error when the waitpid fails with an error. This does not
appear to match the logic in MRI and also breaks if there is a
"raise" hook installed in the system.

This change should better match MRI logic for the detach thread
and avoid the hook issue reported in #6466. It does not address a
separate bug in the trace hook logic when no Ruby frames are
available.

In jruby#6466 we see that the thread from a Process::detach is raising
an error when the waitpid fails with an error. This does not
appear to match the logic in MRI and also breaks if there is a
"raise" hook installed in the system.

This change should better match MRI logic for the detach thread
and avoid the hook issue reported in jruby#6466. It does not address a
separate bug in the trace hook logic when no Ruby frames are
available.
@headius headius added this to the JRuby 9.2.14.0 milestone Nov 16, 2020
@headius headius merged commit 1eb511b into jruby:master Nov 16, 2020
@headius headius deleted the process_detach_simplify branch November 16, 2020 19:01
@headius
Copy link
Member Author

headius commented Nov 19, 2020

This PR went against master but the same commit is in 9.2 at 4acd76a.

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.

None yet

1 participant