aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-14 10:17:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-14 10:17:08 +0000
commit689a4cc741f2dbb2dbefc16ab817438c953b568c (patch)
tree8368a8c7485136e3b5e17f654b2603b7c25cc470 /server.c
parentMerge branch 'url-hint-letters' (diff)
parentclient: -D,--working-directory: check path exists and is a directory (diff)
Merge branch 'working-dir-command-line-option'
Closes #347
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;
}