diff options
Diffstat (limited to 'reboot.c')
-rw-r--r-- | reboot.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,9 +28,9 @@ extern int reboot_main(int argc, char **argv) | |||
28 | { | 28 | { |
29 | #ifdef BB_FEATURE_LINUXRC | 29 | #ifdef BB_FEATURE_LINUXRC |
30 | /* don't assume init's pid == 1 */ | 30 | /* don't assume init's pid == 1 */ |
31 | exit(kill(*(findPidByName("init")), SIGINT)); | 31 | return(kill(*(findPidByName("init")), SIGINT)); |
32 | #else | 32 | #else |
33 | exit(kill(1, SIGINT)); | 33 | return(kill(1, SIGINT)); |
34 | #endif | 34 | #endif |
35 | } | 35 | } |
36 | 36 | ||