server: send exit-code -1 when we fail to instantiate a new terminal

This commit is contained in:
Daniel Eklöf 2021-02-12 09:39:20 +01:00
parent 2a99c5a093
commit 64a60d12f0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -275,6 +275,7 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data)
if (client->term == NULL) {
LOG_ERR("failed to instantiate new terminal");
client_send_exit_code(client, -1);
goto shutdown;
}