From c7238ef7f3c6f182414c7456d3d4ed0faf2ee041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 30 Oct 2019 20:24:54 +0100 Subject: [PATCH] term: assign client PID to term->slave --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */