Skip to content

Commit 6ccd1c1

Browse files
authored
Try #101:
2 parents 59213cd + 7d85dac commit 6ccd1c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl PtyProcess {
8686
/// Start a process in a forked pty
8787
pub fn new(mut command: Command) -> Result<Self, Error> {
8888
// Open a new PTY master
89-
let master_fd = posix_openpt(OFlag::O_RDWR)?;
89+
let master_fd = posix_openpt(OFlag::O_RDWR | OFlag::O_NOCTTY)?;
9090

9191
// Allow a slave to be generated for it
9292
grantpt(&master_fd)?;

0 commit comments

Comments
 (0)