mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
rescue: Don't call exit(3) from a signal handler.
Found by GCC 11 analyzer.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user