chiark / gitweb /
[PATCH] increase udevd event timeout
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Sat, 3 Apr 2004 00:58:59 +0000 (16:58 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:35:14 +0000 (21:35 -0700)
I have a very slow Bluetooth adapter hotplug event call, so we need
to increase the event timeout to something larger than 6 seconds.

  Apr  1 02:54:08 pim udevsend[12119]: main: DEVPATH = '/class/tty/ttyUB0'
  Apr  1 02:54:08 pim udevsend[12119]: main: SEQNUM = '340'

  Apr  1 02:54:08 pim udevsend[12120]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1'
  Apr  1 02:54:08 pim udevsend[12120]: main: SEQNUM = '344'

  Apr  1 02:54:09 pim udevsend[12133]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.1'
  Apr  1 02:54:09 pim udevsend[12133]: main: SEQNUM = '342'

  Apr  1 02:54:10 pim udevsend[12136]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.2'
  Apr  1 02:54:10 pim udevsend[12136]: main: SEQNUM = '343'

  Apr  1 02:54:13 pim udevsend[12141]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0'
  Apr  1 02:54:13 pim udevsend[12141]: main: SEQNUM = '341'

udevd.8
udevd.h

diff --git a/udevd.8 b/udevd.8
index 9d0127b6bcd79c5c422ac5e40785e073caaba8d9..52c270add8ad73f1331fce7494152234334d1387 100644 (file)
--- a/udevd.8
+++ b/udevd.8
@@ -28,7 +28,7 @@ in userspace, that makes it neccessary to reorder them.
 .B udevd
 takes care of the kernel supplied sequence number and arranges the events for
 execution in the correct order. Missing sequences delay the execution of the
-following events until a timeout of a maximum of 5 seconds is reached.
+following events until a timeout is reached.
 .br
 For each event a
 .BR udev (8)
diff --git a/udevd.h b/udevd.h
index 96f179ad44b6065cc13f82dac9c26eed693f750d..5fdd62d32335a85341c39355c531f7cabff58832 100644 (file)
--- a/udevd.h
+++ b/udevd.h
@@ -25,7 +25,7 @@
 #include "list.h"
 
 #define UDEV_MAGIC                     "udevd_" UDEV_VERSION
-#define EVENT_TIMEOUT_SEC              5
+#define EVENT_TIMEOUT_SEC              10
 #define UDEVSEND_CONNECT_RETRY         20 /* x 100 millisec */
 #define UDEVD_SOCK_PATH                        "udevd"