]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bsod: don't fail in an error path 31414/head
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Feb 2024 08:59:51 +0000 (09:59 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Feb 2024 14:11:27 +0000 (15:11 +0100)
If we fail in an error path, don't override the error we are processing,
just print a warning and continue.

src/journal/bsod.c

index 3c64a8389095a4d231cb3a6980e51bb5b823b03e..a4788b828cf81ba39ea288fa3b91380654fcdff4 100644 (file)
@@ -235,7 +235,7 @@ static int display_emergency_message_fullscreen(const char *message) {
 
 cleanup:
         if (original_vt > 0 && ioctl(fd, VT_ACTIVATE, original_vt) < 0)
-                return log_error_errno(errno, "Failed to switch back to original VT /dev/tty%i: %m", original_vt);
+                log_warning_errno(errno, "Failed to switch back to original VT /dev/tty%i: %m", original_vt);
 
         return r;
 }