From 8b72687876747186d5f1a5a45464bf64b1a166f5 Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Wed, 5 Jan 2005 05:33:26 +0100 Subject: [PATCH] limit the initial timeout of the udevd event handling Define an inititialization phase, where we delay the events only for a short time to eventually recollect the event sequence instead of delaying the very first events for 10 seconds, which breaks the firmware loader. --- udevd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'udevd.h') diff --git a/udevd.h b/udevd.h index 1c4b1b88c2..28f62cf528 100644 --- a/udevd.h +++ b/udevd.h @@ -25,10 +25,12 @@ #include "list.h" #define UDEV_MAGIC "udevd_" UDEV_VERSION -#define EVENT_TIMEOUT_SEC 10 #define UDEVD_SOCK_PATH "udevd" #define SEND_WAIT_MAX_SECONDS 3 #define SEND_WAIT_LOOP_PER_SECOND 10 +#define INIT_TIME_SEC 5 +#define EVENT_INIT_TIMEOUT_SEC 2 +#define EVENT_TIMEOUT_SEC 10 /* environment buffer, should match the kernel's size in lib/kobject_uevent.h */ #define HOTPLUG_BUFFER_SIZE 1024 -- cgit v1.2.3-54-g00ecf