diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-29 21:38:22 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-29 21:38:22 -0500 |
commit | f1779c4549c88e7996031b7211a556e8e4b54963 (patch) | |
tree | 414aebffb9bd5494abe2374f7c5d436e7b2150b9 /src/command.rs | |
parent | c9b4ff92040d02b3dd3d050c41e148b2fa8e6b60 (diff) | |
download | pty-process-f1779c4549c88e7996031b7211a556e8e4b54963.tar.gz pty-process-f1779c4549c88e7996031b7211a556e8e4b54963.zip |
i don't think we need to open pts multiple times?
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 3867bf2..171e764 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, pty.pts())?; self.inner.stdin(self.stdin.take().unwrap_or(stdin)); self.inner.stdout(self.stdout.take().unwrap_or(stdout)); |