diff options
Diffstat (limited to 'src/command.rs')
-rw-r--r-- | src/command.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command.rs b/src/command.rs index dfe9684..c50af30 100644 --- a/src/command.rs +++ b/src/command.rs @@ -104,14 +104,14 @@ impl Command { pty: &crate::Pty, ) -> crate::Result<async_process::Child> { let (stdin, stdout, stderr, mut pre_exec) = - crate::sys::setup_subprocess(pty.pts(), Some(pty))?; + crate::sys::setup_subprocess(pty.pts())?; self.inner.stdin(self.stdin.take().unwrap_or(stdin)); self.inner.stdout(self.stdout.take().unwrap_or(stdout)); self.inner.stderr(self.stderr.take().unwrap_or(stderr)); - // Safety: setsid() and close() are async-signal-safe functions and - // ioctl() is a raw syscall (which is inherently async-signal-safe). + // Safety: setsid() is an async-signal-safe function and ioctl() is a + // raw syscall (which is inherently async-signal-safe). if let Some(mut custom) = self.pre_exec.take() { unsafe { self.inner.pre_exec(move || { |