Add support for POSIX O_CLOFORK#53
Closed
ricardobranco777 wants to merge 6 commits into
Closed
Conversation
This was referenced Jun 22, 2025
202f0f2 to
f4c39a5
Compare
f4c39a5 to
a2c9517
Compare
Author
|
To test: |
Author
|
a2c9517 to
76bd79a
Compare
de66d33 to
e01aaeb
Compare
Taken from last commit b3ff81dc6673bee7f291d9d66a832cb3e1004f49 from https://github.com/illumos/illumos-gate/tree/master/usr/src/test/os-tests/tests/oclo
def3437 to
82a2309
Compare
82a2309 to
746dce0
Compare
Author
|
The code was merged upstream. |
netbsd-srcmastr
pushed a commit
that referenced
this pull request
Oct 13, 2025
sys/net/npf/npf.h: revision 1.68 sys/net/npf/npf_ruleset.c: revision 1.57 PR kern/59615 introduce layer checks for 10 userland 11 kernel
netbsd-srcmastr
pushed a commit
that referenced
this pull request
Oct 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for POSIX
O_CLOFORK(close-on-fork) flag. If there's interest I can finish the TODO items.Fixes https://gnats.netbsd.org/59498
This is also being done on:
This may be useful for Golang, Rust, Swift (and other languages):
Command::spawnon a newly-written file can fail with ETXTBSY due to racing with itself on Unix rust-lang/rust#114554TODO
O_CLOEXECNOTES
tests/kernel/t_clofork.cadapted fromtests/kernel/t_cloexec.cPOSIX References:
Illumos references: