Skip to content

Commit

Permalink
Rollup merge of #132984 - sunshowers:pipe2, r=tgross35
Browse files Browse the repository at this point in the history
[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
workingjubilee authored Nov 15, 2024
2 parents 3f9f7c4 + fb3edb2 commit a5510a5
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 a5510a5

Please sign in to comment.