diff options
Diffstat (limited to 'init/halt.c')
-rw-r--r-- | init/halt.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/init/halt.c b/init/halt.c index 10dcb42..a6fec02 100644 --- a/init/halt.c +++ b/init/halt.c @@ -29,8 +29,11 @@ extern int halt_main(int argc, char **argv) #ifdef BB_FEATURE_LINUXRC /* don't assume init's pid == 1 */ pid_t *pid = find_pid_by_name("init"); - if (!pid || *pid<=0) - error_msg_and_die("no process killed"); + if (!pid || *pid<=0) { + pid_t *pid = find_pid_by_name("linuxrc"); + if (!pid || *pid<=0) + error_msg_and_die("no process killed"); + } return(kill(*pid, SIGUSR1)); #else return(kill(1, SIGUSR1)); |