[PATCH] Fix bug causing udev to sleep forever waiting for dev file to show up.

Now we will timeout properly.
This commit is contained in:
greg@kroah.com 2003-10-21 21:40:53 -07:00 committed by Greg KH
parent ada26cf593
commit 5b52fccb59
1 changed files with 1 additions and 0 deletions

View File

@ -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: