Report which signal triggered the exit (#187).

This commit is contained in:
Andrew Wood
2026-04-28 22:53:23 +01:00
parent 2a25221eaf
commit 478039f539
5 changed files with 22 additions and 9 deletions
+1
View File
@@ -272,6 +272,7 @@ struct pvstate_s {
volatile sig_atomic_t reparse_display; /* whether to re-check format string */
volatile sig_atomic_t terminal_resized; /* whether terminal size needs re-reading */
volatile sig_atomic_t trigger_exit; /* whether an immediate abort is required */
volatile sig_atomic_t terminating_signal; /* signal number that triggered an exit */
volatile sig_atomic_t clear_tty_tostop_on_exit; /* whether to clear tty TOSTOP on exit */
volatile sig_atomic_t set_tty_echoctl_on_exit; /* whether to set tty ECHOCTL on exit */
volatile sig_atomic_t suspend_stderr; /* whether writing to stderr is suspended */