mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-16 05:34:00 -04:00
term: send SIGHUP before SIGTERM when shutting down
If we're the ones initiating shutdown, start by sending SIGHUP. Only if the client application does not terminate, send SIGTERM (and if it still refuses to terminate, send SIGKILL). Also reduce the timeout between the signals from 60s to 30s.
This commit is contained in:
parent
c7848c4e75
commit
7f4328e0b1
3 changed files with 61 additions and 13 deletions
|
|
@ -723,6 +723,7 @@ struct terminal {
|
|||
bool client_has_terminated;
|
||||
int terminate_timeout_fd;
|
||||
int exit_status;
|
||||
int next_signal;
|
||||
|
||||
void (*cb)(void *data, int exit_code);
|
||||
void *cb_data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue