From 2bdcda2e64180f27c8555520d69dec7ecdc1c1cc Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 21 Aug 2016 07:56:25 -0400 Subject: pty layer: integrated __ntapi_pty_inherit_runtime_ctty(). --- src/pty/ptyc_spawn.c | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'src/pty') 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))) -- cgit v1.2.3