diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-07-12 19:04:39 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-07-19 11:41:43 +0200 |
commit | 0e08325baafb87cfec2f89293c4755e6167e66ea (patch) | |
tree | 64f23cb0f3968091df2f7b7af58f0ca70162292a /src/basic/terminal-util.c | |
parent | terminal-util: turn off echo on stdin, not stdout (diff) | |
download | systemd-0e08325baafb87cfec2f89293c4755e6167e66ea.tar.xz systemd-0e08325baafb87cfec2f89293c4755e6167e66ea.zip |
terminal-util: remember error code from tcsetattr()
Diffstat (limited to 'src/basic/terminal-util.c')
-rw-r--r-- | src/basic/terminal-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/terminal-util.c b/src/basic/terminal-util.c index 5ebb7e0a74..2ea502c2bc 100644 --- a/src/basic/terminal-util.c +++ b/src/basic/terminal-util.c @@ -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; } |