aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-08-06 18:54:17 -0400
committerJesse Luehrs <doy@tozt.net>2023-08-06 18:54:17 -0400
commit21f81a8531d64d9e52de93f4446e3808be56125e (patch)
tree0f9b243b5e98a23984d10b541f7b3d9160080c62 /tests
parent23e9cecddf662f303a52f613a9300d81d263678d (diff)
downloadpty-process-21f81a8531d64d9e52de93f4446e3808be56125e.tar.gz
pty-process-21f81a8531d64d9e52de93f4446e3808be56125e.zip
one more build fix
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)
})