]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: downgrade log level about failure in notification 40275/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 4 Jan 2026 22:20:50 +0000 (07:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 4 Jan 2026 22:25:16 +0000 (07:25 +0900)
These may fail on shutdown/reboot, as the notification socket is already
closed.

Closes #39943.

src/udev/udev-config.c
src/udev/udev-manager.c

index c9fcff7768f2c1d52d9ef7dcbb4e37d6b6f627ad..17deadfe76071398f117aec5db015d1a39eaa33c 100644 (file)
@@ -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;
index 11de3b9f9f3acfcec9aa30a3465f9b1bb3d5bf58..adbc465571218b31ab2b40ecfa630cdc23582579 100644 (file)
@@ -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)