From 21f81a8531d64d9e52de93f4446e3808be56125e Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 6 Aug 2023 18:54:17 -0400 Subject: one more build fix --- tests/pipe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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) }) -- cgit v1.2.3-54-g00ecf