summaryrefslogtreecommitdiff
path: root/udevd.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-01-05 05:33:26 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:19:09 -0700
commit8b72687876747186d5f1a5a45464bf64b1a166f5 (patch)
tree62d59b83b3ddc13d8a2cbd55c73248e9043512fe /udevd.h
parentd3c3763530955a898e1d50c6844765e94ac957c2 (diff)
[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.
Diffstat (limited to 'udevd.h')
-rw-r--r--udevd.h4
1 files changed, 3 insertions, 1 deletions
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