Remove misguided klude around for 2.4.x-test* brokenness. Al Viro
[oweals/busybox.git] / reboot.c
index ef2a848ee467cd31cb251e71218036fbacbf31fb..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
 }
+
+/*
+Local Variables:
+c-file-style: "linux"
+c-basic-offset: 4
+tab-width: 4
+End:
+*/