chiark / gitweb /
[PATCH] don't call the hotplug scripts with a test run
[elogind.git] / udev.c
diff --git a/udev.c b/udev.c
index 35fa533a4e76d6f49747cd9c12b7dd9d7ef596af..3a97eb1046d006009abf65053cfdfabcb7c8916b 100644 (file)
--- a/udev.c
+++ b/udev.c
@@ -223,7 +223,7 @@ int main(int argc, char *argv[], char *envp[])
        }
 
 hotplug:
-       if (manage_hotplug_event())
+       if (udev_hotplug_d && manage_hotplug_event())
                udev_multiplex_directory(&udev, HOTPLUGD_DIR, HOTPLUG_SUFFIX);
 
 exit: