aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/pipe.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pipe.rs b/tests/pipe.rs
index 3c63602..1b77019 100644
--- a/tests/pipe.rs
+++ b/tests/pipe.rs
@@ -95,7 +95,7 @@ async fn test_pipe_async() {
fn pipe() -> (std::os::fd::OwnedFd, std::os::fd::OwnedFd) {
use std::os::fd::FromRawFd as _;
- let (r, w) = nix::unistd::pipe2(nix::fcntl::OFlag::O_CLOEXEC).unwrap();
+ let (r, w) = nix::unistd::pipe().unwrap();
(unsafe { std::os::fd::OwnedFd::from_raw_fd(r) }, unsafe {
std::os::fd::OwnedFd::from_raw_fd(w)
})