mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user