summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/pty/ptyc_spawn.c19
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;