Permalink
Browse files

fixup waiting for root

this was potentially waiting for 100s for root by default.
  • Loading branch information...
1 parent 49f1e37 commit 80d378e1154e9d7a869ad522892357ff590e00b4 @falconindy committed Apr 25, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 init.c
View
6 init.c
@@ -515,10 +515,12 @@ static int wait_for_root(void) { /* {{{ */
}
if (delay <= 0) {
- delay = 100; /* 100 1/10ths of a second */
+ delay = 10;
}
- msg("waiting up to %.2g seconds for %s ...\n", (float)delay / 10, root);
+ msg("waiting up to %d seconds for %s ...\n", delay, root);
+
+ delay *= 10; /* we sleep in centiseconds */
while (delay--) {
if (access(root, F_OK) == 0) {
struct stat st;

0 comments on commit 80d378e

Please sign in to comment.