aboutsummaryrefslogtreecommitdiff
path: root/reboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'reboot.c')
-rw-r--r--reboot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/reboot.c b/reboot.c
index fc01ea004..2f8b2b4a5 100644
--- a/reboot.c
+++ b/reboot.c
@@ -26,8 +26,12 @@
26 26
27extern int reboot_main(int argc, char **argv) 27extern int reboot_main(int argc, char **argv)
28{ 28{
29#ifdef BB_FEATURE_LINUXRC
29 /* don't assume init's pid == 1 */ 30 /* don't assume init's pid == 1 */
30 exit(kill(findPidByName("init"), SIGINT)); 31 exit(kill(findPidByName("init"), SIGINT));
32#else
33 exit(kill(1, SIGINT));
34#endif
31} 35}
32 36
33/* 37/*