mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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.
This commit is contained in:
parent
a1b41bd186
commit
da923100ca
4 changed files with 7 additions and 7 deletions
4
server.c
4
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue