Skip to content

Commit b1d31d2

Browse files
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.
2 parents 8cef1ef + d30e2c0 commit b1d31d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

std/src/sys/pal/unix/pipe.rs

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub fn anon_pipe() -> io::Result<(AnonPipe, AnonPipe)> {
2323
target_os = "dragonfly",
2424
target_os = "freebsd",
2525
target_os = "hurd",
26+
target_os = "illumos",
2627
target_os = "linux",
2728
target_os = "netbsd",
2829
target_os = "openbsd",

0 commit comments

Comments
 (0)