From fe8b77648757d952d14bbc941f2818b0114434b0 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 7 Apr 2014 21:18:12 +0000 Subject: [PATCH] Thinko: don't forget to apply 'howto' in case init(8) isn't running. --- sys/kern/kern_shutdown.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 6011e41d2636..4700e68e53c3 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -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