summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/udev.c b/udev.c
index 0ef4cf8657..90c34d800a 100644
--- 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();