diff options
Diffstat (limited to 'init/poweroff.c')
-rw-r--r-- | init/poweroff.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/init/poweroff.c b/init/poweroff.c index aca6e2f..d78ff4f 100644 --- a/init/poweroff.c +++ b/init/poweroff.c @@ -26,16 +26,5 @@ extern int poweroff_main(int argc, char **argv) { -#ifdef CONFIG_FEATURE_INITRD - /* don't assume init's pid == 1 */ - long *pid = find_pid_by_name("init"); - if (!pid || *pid<=0) { - pid = find_pid_by_name("linuxrc"); - if (!pid || *pid<=0) - bb_error_msg_and_die("no process killed"); - } - return(kill(*pid, SIGUSR2)); -#else - return(kill(1, SIGUSR2)); -#endif + return kill_init(SIGUSR2); } |