mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
halt: signal init regardless of ENABLE_INIT
This commit is contained in:
parent
cfe2936a73
commit
1e28f6171f
@ -34,7 +34,7 @@ RB_AUTOBOOT
|
|||||||
static const smallint signals[] = { SIGUSR1, SIGUSR2, SIGTERM };
|
static const smallint signals[] = { SIGUSR1, SIGUSR2, SIGTERM };
|
||||||
|
|
||||||
int delay = 0;
|
int delay = 0;
|
||||||
int which, flags, rc = 1;
|
int which, flags, rc;
|
||||||
#if ENABLE_FEATURE_WTMP
|
#if ENABLE_FEATURE_WTMP
|
||||||
struct utmp utmp;
|
struct utmp utmp;
|
||||||
struct utsname uts;
|
struct utsname uts;
|
||||||
@ -71,7 +71,10 @@ RB_AUTOBOOT
|
|||||||
sync();
|
sync();
|
||||||
|
|
||||||
/* Perform action. */
|
/* 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) {
|
if (ENABLE_FEATURE_INITRD) {
|
||||||
pid_t *pidlist = find_pid_by_name("linuxrc");
|
pid_t *pidlist = find_pid_by_name("linuxrc");
|
||||||
if (pidlist[0] > 0)
|
if (pidlist[0] > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user