aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-02-23 00:17:01 -0500
committerJesse Luehrs <doy@tozt.net>2021-02-23 00:17:01 -0500
commitf3e8046eff473aa9bf940b7fbd156cf3dfbfa352 (patch)
treea6b3ed53e89556cd801a49a0619ba37e4c397be6 /src/command
parentacb3681ee251599af194c8555344edc65750ef14 (diff)
downloadpty-process-f3e8046eff473aa9bf940b7fbd156cf3dfbfa352.tar.gz
pty-process-f3e8046eff473aa9bf940b7fbd156cf3dfbfa352.zip
also create separate pty structs per backend
for now, they are identical, but i will change them to be specialized next
Diffstat (limited to 'src/command')
-rw-r--r--src/command/async_process.rs1
-rw-r--r--src/command/std.rs1
-rw-r--r--src/command/tokio.rs1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/command/async_process.rs b/src/command/async_process.rs
index 4c453e6..4248402 100644
--- a/src/command/async_process.rs
+++ b/src/command/async_process.rs
@@ -3,6 +3,7 @@ use std::os::unix::io::FromRawFd as _;
impl super::CommandImpl for async_process::Command {
type Child = async_process::Child;
+ type Pty = crate::pty::async_io::Pty;
fn std_fds(
&mut self,
diff --git a/src/command/std.rs b/src/command/std.rs
index 3287834..f1c5418 100644
--- a/src/command/std.rs
+++ b/src/command/std.rs
@@ -3,6 +3,7 @@ use std::os::unix::process::CommandExt as _;
impl super::CommandImpl for std::process::Command {
type Child = std::process::Child;
+ type Pty = crate::pty::std::Pty;
fn std_fds(
&mut self,
diff --git a/src/command/tokio.rs b/src/command/tokio.rs
index 60dfb56..67baf74 100644
--- a/src/command/tokio.rs
+++ b/src/command/tokio.rs
@@ -2,6 +2,7 @@ use std::os::unix::io::FromRawFd as _;
impl super::CommandImpl for tokio::process::Command {
type Child = tokio::process::Child;
+ type Pty = crate::pty::tokio::Pty;
fn std_fds(
&mut self,