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 Process.exists? throwing errors on EPERM #13911

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

refi64
Copy link
Contributor

@refi64 refi64 commented Oct 27, 2023

kill(3p) says that EPERM is returned if the process "does not have permission to send the signal to any receiving process". If that happens, then it's effectively confirmation that the process exists and thus shouldn't result in throwing an error.

@HertzDevil HertzDevil added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:system platform:unix labels Oct 27, 2023
`kill(3p)` says that EPERM is returned if the process "does not have
permission to send the signal to any receiving process". If that
happens, then it's effectively confirmation that the process exists and
thus shouldn't result in throwing an error.
@straight-shoota straight-shoota added this to the 1.11.0 milestone Oct 30, 2023
@straight-shoota straight-shoota merged commit c97c20e into crystal-lang:master Oct 31, 2023
Blacksmoke16 pushed a commit to Blacksmoke16/crystal that referenced this pull request Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:unix topic:stdlib:system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants