summaryrefslogtreecommitdiffhomepage
path: root/src/pty
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-08-21 07:56:25 -0400
committermidipix <writeonce@midipix.org>2016-08-22 09:00:53 -0400
commit2bdcda2e64180f27c8555520d69dec7ecdc1c1cc (patch)
tree1551a06f3dab7f53854a113f2eac5ca1e829a74c /src/pty
parent2ded43b586991998e22151d0902b85ca9ba75373 (diff)
downloadptycon-2bdcda2e64180f27c8555520d69dec7ecdc1c1cc.tar.bz2
ptycon-2bdcda2e64180f27c8555520d69dec7ecdc1c1cc.tar.xz
pty layer: integrated __ntapi_pty_inherit_runtime_ctty().
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)))