Skip to content

Commit

Permalink
fix merge skew
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Jan 30, 2025
1 parent 94a3bca commit be76b5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ impl Pty {
Ok(Pts(std::fs::OpenOptions::new()
.read(true)
.write(true)
.custom_flags(libc::O_NOCTTY)
.custom_flags(
rustix::fs::OFlags::NOCTTY.bits().try_into().unwrap(),
)
.open(std::ffi::OsStr::from_bytes(
rustix::pty::ptsname(&self.0, vec![])?.as_bytes(),
))?
Expand Down

0 comments on commit be76b5d

Please sign in to comment.