From 64a60d12f0f8b8cec55795818b0b7d008b66ae3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 12 Feb 2021 09:39:20 +0100 Subject: [PATCH] server: send exit-code -1 when we fail to instantiate a new terminal --- server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server.c b/server.c index 7a4101ea..6fbfaee6 100644 --- a/server.c +++ b/server.c @@ -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; }