summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-07-16 20:18:06 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:01:38 -0700
commitaf815f882dc196b1357f5be81cb00c8fe9c60670 (patch)
tree7bc3ccb0ef810e925223a4cff12275ab87d4d3f0 /udev.c
parentf0952f66e634c9da1639662079e74e60da4027ef (diff)
[PATCH] sleep for 2 seconds to give the kernel a chance to actually create the files we need.
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/udev.c b/udev.c
index 5aa9b43d43..de6b6565f2 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)