term: assign client PID to term->slave

This commit is contained in:
Daniel Eklöf 2019-10-30 20:24:54 +01:00
parent 58e31728a0
commit c7238ef7f3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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 */