Skip to content

Fix the assertion in Pid::from_raw to accept 0. #1456

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

Merged
merged 6 commits into from
Apr 30, 2025
Merged

Conversation

sunfishcode
Copy link
Member

Fix a regression from #1443 which disallowed calling Pid::from_raw with the value 0.

Fix a regression from #1443 which disallowed calling `Pid::from_raw`
with the value 0.
@sunfishcode sunfishcode force-pushed the sunfishcode/pid-zero branch from 6019b79 to 82c0800 Compare April 30, 2025 23:15
@sunfishcode sunfishcode merged commit 5930dc0 into main Apr 30, 2025
51 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/pid-zero branch April 30, 2025 23:43
sunfishcode added a commit that referenced this pull request Apr 30, 2025
* Fix the assertion in `Pid::from_raw` to accept 0.

Fix a regression from #1443 which disallowed calling `Pid::from_raw`
with the value 0.

* Disable transmutes warnings for now.

* Add a test.

* Update CI to ubuntu-22.04, as ubuntu-20.04 is no longer supported.

* Fix the build on Rust 1.63.

* Temporarily work around nightly build errors on powerpc64-ibm-aix.
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