Skip to content

Unsupported process waits warn and noop - #6650

Open
headius wants to merge 1 commit into
jruby:jruby-9.2from
headius:kinder_gentler_waitpid
Open

headius wants to merge 1 commit into
jruby:jruby-9.2from
headius:kinder_gentler_waitpid

Conversation

@headius

@headius headius commented Apr 6, 2021

Copy link
Copy Markdown
Member

When running without native support, we cannot do any of the pid-
based waits. However in many instances it may be more damaging to
raise a hard error for the unimplemented logic rather than just
warning and doing nothing. This commit changes the logic of these
methods to report not implemented and warn rather than failing
outright. The methods are also marked as not implemented in case
code checks this (though I have no such examples).

When running without native support, we cannot do any of the pid-
based waits. However in many instances it may be more damaging to
raise a hard error for the unimplemented logic rather than just
warning and doing nothing. This commit changes the logic of these
methods to report not implemented and warn rather than failing
outright. The methods are also marked as not implemented in case
code checks this (though I have no such examples).
@headius

headius commented Apr 6, 2021

Copy link
Copy Markdown
Member Author

The commit in this PR was originally created in service of #6649, due to the tests attempting to use waitpid, but it turned out the tests had several other places they needed real native IO support. I push this as a PR here to discuss whether this would be better behavior for these methods when we cannot implement them.

@headius
headius force-pushed the kinder_gentler_waitpid branch from 559777b to 36fcb1a Compare April 6, 2021 20:07
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