summaryrefslogtreecommitdiff
path: root/udev-add.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-10-21 21:40:53 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:04:09 -0700
commit5b52fccb5950e26a30cd4bc44932fec45ce44227 (patch)
tree4e13cc76262d46205729cd12521373d86aa7cacc /udev-add.c
parentada26cf593614bc26fe836e489bc8d7a31c53bc6 (diff)
[PATCH] Fix bug causing udev to sleep forever waiting for dev file to show up.
Now we will timeout properly.
Diffstat (limited to 'udev-add.c')
-rw-r--r--udev-add.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/udev-add.c b/udev-add.c
index d9d7cab103..2b27855553 100644
--- a/udev-add.c
+++ b/udev-add.c
@@ -150,6 +150,7 @@ int sleep_for_dev(char *path)
/* sleep for a second or two to give the kernel a chance to
* create the dev file */
sleep(1);
+ ++loop;
}
retval = -ENODEV;
exit: