Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

1 participant