Skip to content

Commit

Permalink
[illumos] use pipe2 to create anonymous pipes
Browse files Browse the repository at this point in the history
pipe2 allows the newly-created pipe to atomically be CLOEXEC.

pipe2 was added to illumos a long time ago:
illumos/illumos-gate@5dbfd19.
I've verified that this change passes all tests.
  • Loading branch information
sunshowers committed Nov 13, 2024
1 parent 02e32d7 commit d30e2c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions std/src/sys/pal/unix/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub fn anon_pipe() -> io::Result<(AnonPipe, AnonPipe)> {
target_os = "dragonfly",
target_os = "freebsd",
target_os = "hurd",
target_os = "illumos",
target_os = "linux",
target_os = "netbsd",
target_os = "openbsd",
Expand Down

0 comments on commit d30e2c0

Please sign in to comment.