chiark / gitweb /
[PATCH] fix UDEV_NO_SLEEP
[elogind.git] / udev.c
diff --git a/udev.c b/udev.c
index 0ef4cf8657f17d79e0bf3628fb7a5ec15e7ff8c6..90c34d800a9ca22533f276bf475cd7dc6a450e3a 100644 (file)
--- a/udev.c
+++ b/udev.c
@@ -174,8 +174,11 @@ int main(int argc, char *argv[], char *envp[])
        main_argv = argv;
        main_envp = envp;
 
-       if (strstr(argv[0], "udevstart"))
+       if (strstr(argv[0], "udevstart")) {
+               /* Setup env variables. */
+               setenv("UDEV_NO_SLEEP", "1", 1);
                is_udevstart = 1;
+       }
 
        /* initialize our configuration */
        udev_init_config();