Skip to content

Commit

Permalink
fixup waiting for root
Browse files Browse the repository at this point in the history
this was potentially waiting for 100s for root by default.
  • Loading branch information
falconindy committed Apr 25, 2011
1 parent 49f1e37 commit 80d378e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions init.c
Expand Up @@ -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;
Expand Down

0 comments on commit 80d378e

Please sign in to comment.