Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Apr 2014 21:18:12 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264240 - head/sys/kern
Message-ID:  <201404072118.s37LICaj051794@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Mon Apr  7 21:18:12 2014
New Revision: 264240
URL: http://svnweb.freebsd.org/changeset/base/264240

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

Modified:
  head/sys/kern/kern_shutdown.c

Modified: head/sys/kern/kern_shutdown.c
==============================================================================
--- head/sys/kern/kern_shutdown.c	Mon Apr  7 21:16:51 2014	(r264239)
+++ head/sys/kern/kern_shutdown.c	Mon Apr  7 21:18:12 2014	(r264240)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404072118.s37LICaj051794>