rescue: Don't call exit(3) from a signal handler.

Found by GCC 11 analyzer.
This commit is contained in:
Richard W.M. Jones
2021-01-05 10:31:08 +00:00
parent 4bbbf03b8b
commit 26f5cdaab3

View File

@@ -627,12 +627,12 @@ raw_tty (void)
if (tcgetattr (STDIN_FILENO, &termios) == -1) {
perror ("tcgetattr: stdin");
exit (EXIT_FAILURE);
_exit (EXIT_FAILURE);
}
cfmakeraw (&termios);
if (tcsetattr (STDIN_FILENO, TCSANOW, &termios) == -1) {
perror ("tcsetattr: stdin");
exit (EXIT_FAILURE);
_exit (EXIT_FAILURE);
}
}