diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-29 23:55:13 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-29 23:55:13 -0500 |
commit | bdeb9c86f7adbb277715442bc341c360af6c03f8 (patch) | |
tree | 942e0d99b77dfba770ca1c95d203b0d6efdbcb4d /src/command.rs | |
parent | f1779c4549c88e7996031b7211a556e8e4b54963 (diff) | |
download | pty-process-bdeb9c86f7adbb277715442bc341c360af6c03f8.tar.gz pty-process-bdeb9c86f7adbb277715442bc341c360af6c03f8.zip |
allow not passing the pt
Diffstat (limited to 'src/command.rs')
-rw-r--r-- | src/command.rs | 2 |
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)); |