mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
terminal-util: remember error code from tcsetattr()
This commit is contained in:
parent
1c685216f4
commit
0e08325baa
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user