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

Shall safety status of unistd::fork be the same as std's Process::pre_exec? #1030

Closed
vi opened this issue Feb 14, 2019 · 5 comments · Fixed by #1293
Closed

Shall safety status of unistd::fork be the same as std's Process::pre_exec? #1030

vi opened this issue Feb 14, 2019 · 5 comments · Fixed by #1293

Comments

@vi
Copy link
Contributor

vi commented Feb 14, 2019

It is going to be made unsafe, but nix's fork seems to be still safe.

@asomers
Copy link
Member

asomers commented Feb 14, 2019

Yep, we should do the same.

@RalfJung
Copy link

RalfJung commented Nov 3, 2019

Indeed, fork should be marked unsafe. It even has a "safety" comment, that should never be the case of a safe function.

@vi
Copy link
Contributor Author

vi commented Sep 10, 2020

Why is it still not marked unsafe?

Is it just missing a pull request that adds unsafe to the function and unsafe { } to the tests?

@asomers
Copy link
Member

asomers commented Sep 10, 2020

Yep.

vi added a commit to vi/nix that referenced this issue Sep 10, 2020
Fix tests. No change in documentation.

Resolves nix-rust#1030.
vi added a commit to vi/nix that referenced this issue Sep 10, 2020
Fix tests. No change in documentation.

Resolves nix-rust#1030.
@vi
Copy link
Contributor Author

vi commented Sep 11, 2020

@asomers, Made the pull request.

bors bot added a commit that referenced this issue Oct 3, 2020
1293: Mark nix::unistd::fork as unsafe. r=asomers a=vi

Fix tests. No change in documentation.

Resolves #1030.

Don't forget to bump major version number to `0.19`.

Co-authored-by: Vitaly _Vi Shukela <[email protected]>
@bors bors bot closed this as completed in 74cb154 Oct 3, 2020
yoav-steinberg pushed a commit to yoav-steinberg/nix that referenced this issue Oct 4, 2020
Fix tests. No change in documentation.

Resolves nix-rust#1030.
arush-sal pushed a commit to arush-sal/greetd that referenced this issue Feb 17, 2021
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 a pull request may close this issue.

3 participants