From: greg@kroah.com Date: Thu, 17 Jul 2003 03:18:06 +0000 (-0700) Subject: [PATCH] sleep for 2 seconds to give the kernel a chance to actually create the files... X-Git-Tag: 002~20 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af815f882dc196b1357f5be81cb00c8fe9c60670;p=systemd [PATCH] sleep for 2 seconds to give the kernel a chance to actually create the files we need. --- diff --git a/udev.c b/udev.c index 5aa9b43d..de6b6565 100644 --- a/udev.c +++ b/udev.c @@ -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)