1
0
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:
Lennart Poettering 2024-07-12 19:04:39 +02:00
parent 1c685216f4
commit 0e08325baa

View File

@ -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;
}