diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-07-11 09:26:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-07-19 11:41:43 +0200 |
commit | cfac09083b287c713a2bc3724eb71468a350321d (patch) | |
tree | 33bd60ef8d5067f682092e02c9081c3ae49530ba /src/home | |
parent | terminal-util: add terminal_is_pty_fd() helper (diff) | |
download | systemd-cfac09083b287c713a2bc3724eb71468a350321d.tar.xz systemd-cfac09083b287c713a2bc3724eb71468a350321d.zip |
terminal-util: add new helper terminal_reset_defensive() that combines reset-by-ioctl and reset-by-sequence reasonably
Diffstat (limited to 'src/home')
-rw-r--r-- | src/home/homectl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homectl.c b/src/home/homectl.c index 65431db8ee..c64354141c 100644 --- a/src/home/homectl.c +++ b/src/home/homectl.c @@ -2438,7 +2438,7 @@ static int create_interactively(void) { (void) polkit_agent_open_if_enabled(arg_transport, arg_ask_password); - (void) reset_terminal_fd(STDIN_FILENO, /* switch_to_text= */ false); + (void) terminal_reset_defensive(STDIN_FILENO, /* switch_to_text= */ false); for (;;) { username = mfree(username); |