diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-07-31 17:08:51 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-07-31 17:08:51 +0000 |
| commit | 03f952cf4dcf45d909ce209838a3beb4304358e5 (patch) | |
| tree | dd5a0718daa3b11c7e7ae8af923a54afcf260e88 /terminal.h | |
| parent | term: rename: slave_died() -> fdm_client_terminated() (diff) | |
term: consolidate shutdown related state into an anonymous struct
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -593,12 +593,15 @@ struct terminal { bool ime_enabled; #endif - bool is_shutting_down; - bool slave_has_been_reaped; - int slave_terminate_timeout_fd; - 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; |
