aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-30 19:24:54 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-30 19:24:54 +0000
commitc7238ef7f3c6f182414c7456d3d4ed0faf2ee041 (patch)
tree4afe842c1cc7749724a359c8e592161e51f0ef10
parentterm: term_init(): create wayland window *last* (diff)
term: assign client PID to term->slave
-rw-r--r--terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index 6699a25b..7f3b3023 100644
--- a/terminal.c
+++ b/terminal.c
@@ -446,7 +446,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
LOG_INFO("cell width=%d, height=%d", term->cell_width, term->cell_height);
/* Start the slave/client */
- if (slave_spawn(term->ptmx, argc, argv, conf->shell) == -1)
+ if ((term->slave = slave_spawn(term->ptmx, argc, argv, conf->shell)) == -1)
goto err;
/* Initiailze the Wayland window backend */