mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
terminal-util: remember error code from tcsetattr()
This commit is contained in:
@@ -1813,6 +1813,6 @@ int get_default_background_color(double *ret_red, double *ret_green, double *ret
|
||||
}
|
||||
|
||||
finish:
|
||||
(void) tcsetattr(STDIN_FILENO, TCSADRAIN, &old_termios);
|
||||
RET_GATHER(r, RET_NERRNO(tcsetattr(STDIN_FILENO, TCSADRAIN, &old_termios)));
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user