-
-
Notifications
You must be signed in to change notification settings - Fork 503
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 crash when Process.wait is used #895
Conversation
Make `sys_command` compatible with `Process.wait` and `trap('CLD', 'IGNORE')`
Can this please be implemented. It's also fixing crashes for me. It was difficult to figure out what was the problem until I found this PR. Thank you. |
@HazAT can we see if this will work? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx! 🎉
Will do a release on monday!
Oh, @asBrettisay Can you please fix the tests before merging? |
@HazAT Will do |
@HazAT Tests are passing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you again 🎉
Make
sys_command
tolerate a missing $CHILD_STATUS.Hi 👋 in my code I was using
Process.wait
and found that it was causing this error in sentry-raven:undefined method
exitstatus' for nil:NilClass`My understanding is that calling
Process.wait
clears out the ruby global for last child process, and this is causing the error. I think that sentry-raven should be able to work if I useProcess.wait
or something similar like `trap('CLD', 'IGNORE') so I made a PR that I think will fix the issue. Hope that this helps 👍.