summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2004-02-13 20:12:40 +0000
committerMartin Schlemmer <azarah@gentoo.org>2004-02-13 20:12:40 +0000
commit2a206668dc21d0434386c5edac3732373aad28a5 (patch)
treecb3f7ce78686f3009a840c7818368712e606bca4 /sys-fs/udev/files
parentversion bump (diff)
downloadhistorical-2a206668dc21d0434386c5edac3732373aad28a5.tar.gz
historical-2a206668dc21d0434386c5edac3732373aad28a5.tar.bz2
historical-2a206668dc21d0434386c5edac3732373aad28a5.zip
Update version.
Diffstat (limited to 'sys-fs/udev/files')
-rw-r--r--sys-fs/udev/files/digest-udev-0171
-rw-r--r--sys-fs/udev/files/udev-017-no-wait-for-sleep.patch54
2 files changed, 55 insertions, 0 deletions
diff --git a/sys-fs/udev/files/digest-udev-017 b/sys-fs/udev/files/digest-udev-017
new file mode 100644
index 000000000000..4937dd4650c8
--- /dev/null
+++ b/sys-fs/udev/files/digest-udev-017
@@ -0,0 +1 @@
+MD5 666679dfde71f098b0f607c49df69a38 udev-017.tar.bz2 309361
diff --git a/sys-fs/udev/files/udev-017-no-wait-for-sleep.patch b/sys-fs/udev/files/udev-017-no-wait-for-sleep.patch
new file mode 100644
index 000000000000..17812c7dd1ed
--- /dev/null
+++ b/sys-fs/udev/files/udev-017-no-wait-for-sleep.patch
@@ -0,0 +1,54 @@
+--- udev-015/namedev.c 2004-01-29 19:02:10.067218096 +0200
++++ udev-015.no_sleep/namedev.c 2004-01-29 19:10:21.440518000 +0200
+#@@ -285,6 +285,10 @@ static void wait_for_device_to_initializ
+# struct bus_file *b = &bus_files[0];
+# struct sysfs_attribute *tmpattr;
+# int loop;
+#+ int udev_wait = 1;
+#+
+#+ if (getenv("UDEV_NO_SLEEP") != NULL)
+#+ udev_wait = 0;
+#
+# while (1) {
+# if (b->bus == NULL)
+#@@ -300,7 +304,8 @@ static void wait_for_device_to_initializ
+# goto exit;
+# }
+# /* sleep to give the kernel a chance to create the file */
+#- sleep(1);
+#+ if (udev_wait)
+#+ sleep(1);
+# }
+# dbg("timed out waiting for '%s' file, continuing on anyway...", b->file);
+# goto exit;
+@@ -524,6 +529,10 @@ static struct sysfs_device *get_sysfs_de
+ struct sysfs_class_device *class_dev_parent;
+ struct timespec tspec;
+ int loop;
++ int udev_wait = 1;
++
++ if (getenv("UDEV_NO_SLEEP") != NULL)
++ udev_wait = 0;
+
+ /* Figure out where the device symlink is at. For char devices this will
+ * always be in the class_dev->path. But for block devices, it's different.
+@@ -542,7 +551,8 @@ static struct sysfs_device *get_sysfs_de
+ tspec.tv_nsec = 10000000; /* sleep 10 millisec */
+ loop = 10;
+ while (loop--) {
+- nanosleep(&tspec, NULL);
++ if (udev_wait)
++ nanosleep(&tspec, NULL);
+ if (class_dev_parent)
+ sysfs_device = sysfs_get_classdev_device(class_dev_parent);
+ else
+@@ -569,7 +579,8 @@ device_found:
+ loop = 10;
+ tspec.tv_nsec = 10000000;
+ while (loop--) {
+- nanosleep(&tspec, NULL);
++ if (udev_wait)
++ nanosleep(&tspec, NULL);
+ sysfs_get_device_bus(sysfs_device);
+
+ if (sysfs_device->bus[0] != '\0')