Thinko: don't forget to apply 'howto' in case init(8) isn't running.

This commit is contained in:
Ed Schouten 2014-04-07 21:18:12 +00:00
parent 35074a0a2b
commit 8f5b107b84

View File

@ -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