Oops. Forgot the usleep.c file.
[oweals/busybox.git] / reboot.c
index f782fa1e6c728124a271059f8867d82404a5a67c..2f8b2b4a5275487b25e58dd893c2985c748aea1c 100644 (file)
--- a/reboot.c
+++ b/reboot.c
 
 extern int reboot_main(int argc, char **argv)
 {
+#ifdef BB_FEATURE_LINUXRC
        /* don't assume init's pid == 1 */
-       exit(kill(findInitPid(), SIGINT));
+       exit(kill(findPidByName("init"), SIGINT));
+#else
+       exit(kill(1, SIGINT));
+#endif
 }
 
 /*