aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-01 08:46:40 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-04 08:41:22 +0000
commitda923100cad1000252c87b02a4132ce5878a28ec (patch)
tree0a0157f023635340b25199605fa999491d0d87a0 /server.c
parentfoot/footclient: use a custom exit code when foot/footclient fail to run (diff)
main/client: change exit code
* foot exits with -26/230 * footclient exits with -36/220 This is to give each application a range of exit codes. Currently unused, but we may want to change this in the future.
Diffstat (limited to 'server.c')
-rw-r--r--server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.c b/server.c
index 6a86bae2..1b33ee23 100644
--- a/server.c
+++ b/server.c
@@ -312,7 +312,7 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data)
if (instance->terminal == NULL) {
LOG_ERR("failed to instantiate new terminal");
- client_send_exit_code(client, -27);
+ client_send_exit_code(client, -26);
instance_destroy(instance, -1);
goto shutdown;
}
@@ -497,7 +497,7 @@ server_destroy(struct server *server)
tll_length(server->clients));
tll_foreach(server->clients, it) {
- client_send_exit_code(it->item, -27);
+ client_send_exit_code(it->item, -26);
client_destroy(it->item);
}