[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:
parent
ada26cf593
commit
5b52fccb59
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue