diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-07-17 15:06:27 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-07-19 11:44:04 +0200 |
commit | 2cd19499a0ab85e2c48e397a53a1bad0f025c31c (patch) | |
tree | 3165ec40e7a8e41d1440b6593b1dd97aa123c27e /src/firstboot/firstboot.c | |
parent | terminal-util: teach resolve_dev_console() to deal correctly with /dev/consol... (diff) | |
download | systemd-2cd19499a0ab85e2c48e397a53a1bad0f025c31c.tar.xz systemd-2cd19499a0ab85e2c48e397a53a1bad0f025c31c.zip |
tree-wide: acquire /dev/console lock around any attempts to reset TTY
Diffstat (limited to 'src/firstboot/firstboot.c')
-rw-r--r-- | src/firstboot/firstboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index 86aa8e8c18..c70bfa468f 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -133,7 +133,7 @@ static void print_welcome(int rfd) { pn = os_release_pretty_name(pretty_name, os_name); ac = isempty(ansi_color) ? "0" : ansi_color; - (void) terminal_reset_defensive(STDOUT_FILENO, /* switch_to_text= */ false); + (void) terminal_reset_defensive_locked(STDOUT_FILENO, /* switch_to_text= */ false); if (colors_enabled()) printf("\nWelcome to your new installation of \x1B[%sm%s\x1B[0m!\n", ac, pn); |