1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-26 08:55:18 +03:00

[PATCH] sleep for 2 seconds to give the kernel a chance to actually create the files we need.

This commit is contained in:
greg@kroah.com 2003-07-16 20:18:06 -07:00 committed by Greg KH
parent f0952f66e6
commit af815f882d

5
udev.c
View File

@ -262,6 +262,11 @@ int main(int argc, char *argv[])
goto exit;
}
/* sleep for a second or two to give the kernel a chance to
* create the dev file
*/
sleep(2);
/* for now, the block layer is the only place where block devices are */
subsystem = argv[1];
if (strcmp(subsystem, "block") == 0)