aboutsummaryrefslogtreecommitdiff
path: root/halt.c
diff options
context:
space:
mode:
Diffstat (limited to 'halt.c')
-rw-r--r--halt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/halt.c b/halt.c
index a6fec021b..d66e28d0e 100644
--- a/halt.c
+++ b/halt.c
@@ -30,7 +30,7 @@ extern int halt_main(int argc, char **argv)
30 /* don't assume init's pid == 1 */ 30 /* don't assume init's pid == 1 */
31 pid_t *pid = find_pid_by_name("init"); 31 pid_t *pid = find_pid_by_name("init");
32 if (!pid || *pid<=0) { 32 if (!pid || *pid<=0) {
33 pid_t *pid = find_pid_by_name("linuxrc"); 33 pid = find_pid_by_name("linuxrc");
34 if (!pid || *pid<=0) 34 if (!pid || *pid<=0)
35 error_msg_and_die("no process killed"); 35 error_msg_and_die("no process killed");
36 } 36 }