aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-08-03 17:06:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-08-03 17:06:29 +0000
commit347cda14cfb08696c2193025afd209cb48372ec9 (patch)
treed93b19fc3c71ddb2469670ea13637281a9d9fbaf /terminal.h
parentMerge branch 'tilde-expansion-in-include' (diff)
parentterm: send SIGTERM/SIGKILL to the entire process group (diff)
Merge branch 'async-client-termination'
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/terminal.h b/terminal.h
index 688e42cc..6e8aa264 100644
--- a/terminal.h
+++ b/terminal.h
@@ -593,11 +593,15 @@ struct terminal {
bool ime_enabled;
#endif
- bool is_shutting_down;
- bool slave_has_been_reaped;
- int exit_status;
- void (*shutdown_cb)(void *data, int exit_code);
- void *shutdown_data;
+ struct {
+ bool in_progress;
+ bool client_has_terminated;
+ int terminate_timeout_fd;
+ int exit_status;
+
+ void (*cb)(void *data, int exit_code);
+ void *cb_data;
+ } shutdown;
char *foot_exe;
char *cwd;