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

Fix ChildProcess::Unix::Process#wait method with leader processes #152

Merged
merged 1 commit into from
Jun 11, 2019

Conversation

sds
Copy link
Collaborator

@sds sds commented Jun 4, 2019

Issue #151 reported a problem where in the update from Ruby 2.5 to Ruby 2.6 some programs would block forever on a Process.waitpid2 call.

Changing the call to pass in a positive PID instead of the negative PID fixes the issue as it will call the waitpid system call right away instead of delaying it for later.

See #151 for further discussion of the possible reasons for the behavior.

Issue #151 reported a problem where in the update from Ruby 2.5 to Ruby
2.6 some programs would block forever on a `Process.waitpid2` call.

Changing the call to pass in a positive PID instead of the negative PID
fixes the issue as it will call the `waitpid` system call right away
instead of delaying it for later.

See #151 for further discussion of the possible reasons for the
behavior.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.009%) to 93.715% when pulling e2878af on fix-wait-pid into f7f671a on dev.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.009%) to 93.715% when pulling e2878af on fix-wait-pid into f7f671a on dev.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.009%) to 93.715% when pulling e2878af on fix-wait-pid into f7f671a on dev.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.009%) to 93.715% when pulling e2878af on fix-wait-pid into f7f671a on dev.

Repository owner deleted a comment from coveralls Jun 9, 2019
@sds sds merged commit 3bbc30f into dev Jun 11, 2019
@sds sds deleted the fix-wait-pid branch June 11, 2019 03:46
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Mar 24, 2020
Update ruby-childprocessto 3.0.0.


### Version 3.0.0 / 2019-09-20

* [#156](enkessler/childprocess#156 unused `rubyforge_project` from gemspec
* [#160](enkessler/childprocess#160): Remove extension to conditionally install `ffi` gem on Windows platforms
* [#160](enkessler/childprocess#160): Remove runtime dependency on `rake` gem

### Version 2.0.0 / 2019-07-11

* [#148](enkessler/childprocess#148): Drop support for Ruby 2.0, 2.1, and 2.2
* [#149](enkessler/childprocess#149): Fix Unix fork reopen to be compatible with Ruby 2.6
* [#152](enkessler/childprocess#152): Fix hangs and permission errors introduced in Ruby 2.6 for leader processes of process groups

### Version 1.0.1 / 2019-02-03

* [#143](enkessler/childprocess#144): Fix installs by adding `rake` gem as runtime dependency
* [#147](enkessler/childprocess#147): Relax `rake` gem constraint from `< 12` to `< 13`

### Version 1.0.0 / 2019-01-28

* [#134](enkessler/childprocess#134): Add support for non-ASCII characters on Windows
* [#132](enkessler/childprocess#132): Install `ffi` gem requirement on Windows only
* [#128](enkessler/childprocess#128): Convert environment variable values to strings when `posix_spawn` enabled
* [#141](enkessler/childprocess#141): Support JRuby on Java >= 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants