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

This commit is contained in:
ed 2014-04-07 21:18:12 +00:00
parent 31f65531d2
commit fe8b776487

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