aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-04-05 14:27:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-04-05 17:34:17 +0000
commit7f4328e0b1d5e47aa096c0d3cd8bfea143f80a91 (patch)
tree0ebc6a756321bb0d10eb999b8ae2a40a9339ffa3 /terminal.h
parentterm: don't shutdown terminal when PTY is closed, unless --pty was used (diff)
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.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 953f3329..fa80e693 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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;