Thinko: don't forget to apply 'howto' in case init(8) isn't running.
This commit is contained in:
parent
35074a0a2b
commit
8f5b107b84
@ -218,9 +218,8 @@ shutdown_nice(int howto)
|
||||
PROC_UNLOCK(initproc);
|
||||
} else {
|
||||
/* No init(8) running, so simply reboot. */
|
||||
kern_reboot(RB_NOSYNC);
|
||||
kern_reboot(howto | RB_NOSYNC);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user