From: Denis Vlasenko Date: Sun, 3 Aug 2008 18:43:45 +0000 (-0000) Subject: halt: signal init regardless of ENABLE_INIT X-Git-Tag: 1_12_0~53 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1e28f6171fe9cb56422473d506aa28fdb1eb46d8;p=oweals%2Fbusybox.git halt: signal init regardless of ENABLE_INIT --- diff --git a/init/halt.c b/init/halt.c index 7e1b30f39..8c1f30b08 100644 --- a/init/halt.c +++ b/init/halt.c @@ -34,7 +34,7 @@ RB_AUTOBOOT static const smallint signals[] = { SIGUSR1, SIGUSR2, SIGTERM }; int delay = 0; - int which, flags, rc = 1; + int which, flags, rc; #if ENABLE_FEATURE_WTMP struct utmp utmp; struct utsname uts; @@ -71,7 +71,10 @@ RB_AUTOBOOT sync(); /* Perform action. */ - if (ENABLE_INIT && !(flags & 4)) { /* no -f */ + rc = 1; + if (!(flags & 4)) { /* no -f */ +//TODO: I tend to think that signalling linuxrc is wrong +// pity original author didn't comment on it... if (ENABLE_FEATURE_INITRD) { pid_t *pidlist = find_pid_by_name("linuxrc"); if (pidlist[0] > 0)