aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-12 08:39:20 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-12 20:42:53 +0000
commit64a60d12f0f8b8cec55795818b0b7d008b66ae3c (patch)
treed6bb69a4d3a47575598be77fc67fbd858b30bb34 /server.c
parentuser-notification: add new function ‘user_notification_add()’ (diff)
server: send exit-code -1 when we fail to instantiate a new terminal
Diffstat (limited to 'server.c')
-rw-r--r--server.c1
1 files changed, 1 insertions, 0 deletions
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;
}