Skip to content

Commit d30e2c0

Browse files
committed
[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 tests.
1 parent 02e32d7 commit d30e2c0

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)