diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-08-06 18:54:17 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-08-06 18:54:17 -0400 |
commit | 21f81a8531d64d9e52de93f4446e3808be56125e (patch) | |
tree | 0f9b243b5e98a23984d10b541f7b3d9160080c62 /tests/pipe.rs | |
parent | 23e9cecddf662f303a52f613a9300d81d263678d (diff) | |
download | pty-process-21f81a8531d64d9e52de93f4446e3808be56125e.tar.gz pty-process-21f81a8531d64d9e52de93f4446e3808be56125e.zip |
one more build fix
Diffstat (limited to 'tests/pipe.rs')
-rw-r--r-- | tests/pipe.rs | 2 |
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) }) |