Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixup waiting for root

this was potentially waiting for 100s for root by default.
  • Loading branch information...
commit 80d378e1154e9d7a869ad522892357ff590e00b4 1 parent 49f1e37
@falconindy authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.