Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.c
[oweals/busybox.git] / reboot.c
index f782fa1e6c728124a271059f8867d82404a5a67c..bde8dbd7750d7dc1511f80c9f1ed141e94a81fce 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));
+       return(kill(*(findPidByName("init")), SIGINT));
+#else
+       return(kill(1, SIGINT));
+#endif
 }
 
 /*