]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: delay to start queued events on `udevadm control --start-exec-queue`
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Jul 2022 12:05:06 +0000 (21:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 23 Jul 2022 05:08:40 +0000 (14:08 +0900)
src/udev/udevd.c

index b547712e47e2d7bc3eb2e4c187eeb7689aeacc79..d154cf4b73f8c15506a500a42c03861e1fa89b2d 100644 (file)
@@ -1248,7 +1248,7 @@ static int on_ctrl_msg(UdevCtrl *uctrl, UdevCtrlMessageType type, const UdevCtrl
         case UDEV_CTRL_START_EXEC_QUEUE:
                 log_debug("Received udev control message (START_EXEC_QUEUE)");
                 manager->stop_exec_queue = false;
-                event_queue_start(manager);
+                /* It is not necessary to call event_queue_start() here, as it will be called in on_post() if necessary. */
                 break;
         case UDEV_CTRL_RELOAD:
                 log_debug("Received udev control message (RELOAD)");