init: reduce delay after starting kmodloader
authorFelix Fietkau <nbd@openwrt.org>
Sat, 5 Mar 2016 19:08:56 +0000 (20:08 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 5 Mar 2016 19:08:56 +0000 (20:08 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
initd/init.c

index 9818c4fbe5912308d844927d884746aad859806e..4d17563d411c178a809196bfc6fc67347b7a25d4 100644 (file)
@@ -106,10 +106,10 @@ main(int argc, char **argv)
        } else {
                int i;
 
-               for (i = 0; i < 120; i++) {
+               for (i = 0; i < 1200; i++) {
                        if (waitpid(pid, NULL, WNOHANG) > 0)
                                break;
-                       sleep(1);
+                       usleep(10 * 1000);
                        watchdog_ping();
                }
        }