Skip to content

Commit

Permalink
Unrolled build for rust-lang#132984
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#132984 - sunshowers:pipe2, r=tgross35

[illumos] use pipe2 to create anonymous pipes

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 of std's tests on illumos.
  • Loading branch information
rust-timer authored Nov 15, 2024
2 parents 3bc6916 + fb3edb2 commit 55c6e31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/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 55c6e31

Please sign in to comment.