diff options
author | midipix <writeonce@midipix.org> | 2017-01-06 10:57:24 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-01-07 11:41:08 -0500 |
commit | 0fb614d9c75ff41a55b1da17a1b36b1f5c1ece84 (patch) | |
tree | da30e8fe1e42b57c7054274ec85b9b64a0f83235 /src | |
parent | 0fbfb0981f4c3ae451a1e0136408f10452790c4f (diff) | |
download | ptycon-0fb614d9c75ff41a55b1da17a1b36b1f5c1ece84.tar.bz2 ptycon-0fb614d9c75ff41a55b1da17a1b36b1f5c1ece84.tar.xz |
ptyc_spawn(): added proper session chain support.
Diffstat (limited to 'src')
-rw-r--r-- | src/pty/ptyc_spawn.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/pty/ptyc_spawn.c b/src/pty/ptyc_spawn.c index 3327beb..7408b3c 100644 --- a/src/pty/ptyc_spawn.c +++ b/src/pty/ptyc_spawn.c @@ -59,12 +59,19 @@ int ptyc_spawn(struct ptyc_driver_ctx * dctx) ? dctx->cctx->hroot : self->hroot; - rtctx.srv_keys[0] = self->srv_keys[0]; - rtctx.srv_keys[1] = self->srv_keys[1]; - rtctx.srv_keys[2] = self->srv_keys[2]; - rtctx.srv_keys[3] = self->srv_keys[3]; - rtctx.srv_keys[4] = self->srv_keys[4]; - rtctx.srv_keys[5] = self->srv_keys[5]; + rtctx.tty_type = self->tty_type; + rtctx.tty_subtype = self->tty_subtype; + + rtctx.tty_keys[0] = self->tty_keys[0]; + rtctx.tty_keys[1] = self->tty_keys[1]; + rtctx.tty_keys[2] = self->tty_keys[2]; + rtctx.tty_keys[3] = self->tty_keys[3]; + rtctx.tty_keys[4] = self->tty_keys[4]; + rtctx.tty_keys[5] = self->tty_keys[5]; + + ntapi->tt_guid_copy( + &rtctx.tty_guid, + &self->tty_guid); rtctx.hstdin = NT_INVALID_HANDLE_VALUE; rtctx.hstdout = NT_INVALID_HANDLE_VALUE; |