From: Yu Watanabe Date: Sun, 4 Jan 2026 22:20:50 +0000 (+0900) Subject: udev: downgrade log level about failure in notification X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=472404aca5357b7e65cdddf418342070b0ccd4d2;p=thirdparty%2Fsystemd.git udev: downgrade log level about failure in notification These may fail on shutdown/reboot, as the notification socket is already closed. Closes #39943. --- diff --git a/src/udev/udev-config.c b/src/udev/udev-config.c index c9fcff7768f..17deadfe760 100644 --- a/src/udev/udev-config.c +++ b/src/udev/udev-config.c @@ -557,9 +557,10 @@ int manager_serialize_config(Manager *manager) { if (r < 0) return log_warning_errno(r, "Failed to finalize serialization file: %m"); + /* This may fail on shutdown/reboot. Let's not warn louder. */ r = notify_push_fd(fileno(f), "config-serialization"); if (r < 0) - return log_warning_errno(r, "Failed to push serialization fd to service manager: %m"); + return log_debug_errno(r, "Failed to push serialization fd to service manager: %m"); log_debug("Serialized configurations."); return 0; diff --git a/src/udev/udev-manager.c b/src/udev/udev-manager.c index 11de3b9f9f3..adbc4655712 100644 --- a/src/udev/udev-manager.c +++ b/src/udev/udev-manager.c @@ -1503,7 +1503,7 @@ int manager_main(Manager *manager) { /* We will start processing events in the loop below. Before starting processing, let's remove the * event serialization fd from the fdstore, to avoid retrieving the serialized events again in future * invocations. Otherwise, the serialized events may be processed multiple times. */ - (void) notify_remove_fd_warn("event-serialization"); + (void) notify_remove_fd("event-serialization"); r = sd_event_loop(manager->event); if (r < 0)