We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59213cd + 7d85dac commit 6ccd1c1Copy full SHA for 6ccd1c1
src/process.rs
@@ -86,7 +86,7 @@ impl PtyProcess {
86
/// Start a process in a forked pty
87
pub fn new(mut command: Command) -> Result<Self, Error> {
88
// Open a new PTY master
89
- let master_fd = posix_openpt(OFlag::O_RDWR)?;
+ let master_fd = posix_openpt(OFlag::O_RDWR | OFlag::O_NOCTTY)?;
90
91
// Allow a slave to be generated for it
92
grantpt(&master_fd)?;
0 commit comments