From: greg@kroah.com Date: Wed, 22 Oct 2003 04:40:53 +0000 (-0700) Subject: [PATCH] Fix bug causing udev to sleep forever waiting for dev file to show up. X-Git-Tag: 005~31 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b52fccb5950e26a30cd4bc44932fec45ce44227;p=systemd [PATCH] Fix bug causing udev to sleep forever waiting for dev file to show up. Now we will timeout properly. --- 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: