From 5b52fccb5950e26a30cd4bc44932fec45ce44227 Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Tue, 21 Oct 2003 21:40:53 -0700 Subject: [PATCH] [PATCH] Fix bug causing udev to sleep forever waiting for dev file to show up. Now we will timeout properly. --- udev-add.c | 1 + 1 file changed, 1 insertion(+) diff --git a/udev-add.c b/udev-add.c index d9d7cab1..2b278555 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: -- 2.39.5