summaryrefslogtreecommitdiffhomepage
path: root/src/pty
diff options
context:
space:
mode:
Diffstat (limited to 'src/pty')
-rw-r--r--src/pty/ptyc_spawn.c23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/pty/ptyc_spawn.c b/src/pty/ptyc_spawn.c
index f4f026b..f94af2d 100644
--- a/src/pty/ptyc_spawn.c
+++ b/src/pty/ptyc_spawn.c
@@ -74,10 +74,25 @@ int __stdcall ptyc_spawn(struct ptyc_driver_ctx * dctx)
rtctx.stdout_type = NT_FILE_TYPE_PTY;
rtctx.stderr_type = NT_FILE_TYPE_PTY;
- rtctx.ptyany[0] = clctx->clinfo.any[0];
- rtctx.ptyany[1] = clctx->clinfo.any[1];
- rtctx.ptyany[2] = clctx->clinfo.any[2];
- rtctx.ptyany[3] = clctx->clinfo.any[3];
+ rtctx.ptyin [0] = clctx->clinfo.any[0];
+ rtctx.ptyin [1] = clctx->clinfo.any[1];
+ rtctx.ptyin [2] = clctx->clinfo.any[2];
+ rtctx.ptyin [3] = clctx->clinfo.any[3];
+
+ rtctx.ptyout[0] = clctx->clinfo.any[0];
+ rtctx.ptyout[1] = clctx->clinfo.any[1];
+ rtctx.ptyout[2] = clctx->clinfo.any[2];
+ rtctx.ptyout[3] = clctx->clinfo.any[3];
+
+ rtctx.ptyerr[0] = clctx->clinfo.any[0];
+ rtctx.ptyerr[1] = clctx->clinfo.any[1];
+ rtctx.ptyerr[2] = clctx->clinfo.any[2];
+ rtctx.ptyerr[3] = clctx->clinfo.any[3];
+
+ rtctx.ptyctl[0] = clctx->clinfo.any[0];
+ rtctx.ptyctl[1] = clctx->clinfo.any[1];
+ rtctx.ptyctl[2] = clctx->clinfo.any[2];
+ rtctx.ptyctl[3] = clctx->clinfo.any[3];
/* hoppla */
if ((status = ntapi->tt_spawn_native_process(&sparams)))