Improve the readability of the code that handles SIGTTOU.

This commit is contained in:
Andrew Wood
2024-10-03 22:08:11 +01:00
parent 416c61a663
commit 52a720ec33
4 changed files with 18 additions and 12 deletions
+2 -2
View File
@@ -160,8 +160,7 @@ struct pvstate_s {
volatile sig_atomic_t rxusr2; /* whether SIGUSR2 was received */
volatile pid_t sender; /* PID of sending process for SIGUSR2 */
#endif
int old_stderr; /* see pv_sig_ttou() */
bool pv_tty_tostop_added; /* whether we had to set TOSTOP on the terminal */
int old_stderr; /* see pv_sig_ttou() */
} signal;
/*******************
@@ -171,6 +170,7 @@ struct pvstate_s {
volatile sig_atomic_t reparse_display; /* whether to re-check format string */
volatile sig_atomic_t terminal_resized; /* whether we need to get term size again */
volatile sig_atomic_t trigger_exit; /* whether we need to abort right now */
volatile sig_atomic_t clear_tty_tostop_on_exit; /* whether to clear tty TOSTOP on exit */
} flag;
/*****************