aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-29 23:55:13 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-29 23:55:13 -0500
commitbdeb9c86f7adbb277715442bc341c360af6c03f8 (patch)
tree942e0d99b77dfba770ca1c95d203b0d6efdbcb4d /src/command.rs
parentf1779c4549c88e7996031b7211a556e8e4b54963 (diff)
downloadpty-process-bdeb9c86f7adbb277715442bc341c360af6c03f8.tar.gz
pty-process-bdeb9c86f7adbb277715442bc341c360af6c03f8.zip
allow not passing the pt
Diffstat (limited to 'src/command.rs')
-rw-r--r--src/command.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.rs b/src/command.rs
index 171e764..dfe9684 100644
--- a/src/command.rs
+++ b/src/command.rs
@@ -104,7 +104,7 @@ impl Command {
pty: &crate::Pty,
) -> crate::Result<async_process::Child> {
let (stdin, stdout, stderr, mut pre_exec) =
- crate::sys::setup_subprocess(pty, pty.pts())?;
+ crate::sys::setup_subprocess(pty.pts(), Some(pty))?;
self.inner.stdin(self.stdin.take().unwrap_or(stdin));
self.inner.stdout(self.stdout.take().unwrap_or(stdout));