Deleted Added
full compact
kern_shutdown.c (264237) kern_shutdown.c (264240)
1/*-
2 * Copyright (c) 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 21 unchanged lines hidden (view full) ---

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
35 */
36
37#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 21 unchanged lines hidden (view full) ---

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 264237 2014-04-07 21:11:29Z ed $");
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 264240 2014-04-07 21:18:12Z ed $");
39
40#include "opt_ddb.h"
41#include "opt_kdb.h"
42#include "opt_panic.h"
43#include "opt_sched.h"
44#include "opt_watchdog.h"
45
46#include <sys/param.h>

--- 166 unchanged lines hidden (view full) ---

213 kern_psignal(initproc, SIGUSR2);
214 else if (howto & RB_HALT)
215 kern_psignal(initproc, SIGUSR1);
216 else
217 kern_psignal(initproc, SIGINT);
218 PROC_UNLOCK(initproc);
219 } else {
220 /* No init(8) running, so simply reboot. */
39
40#include "opt_ddb.h"
41#include "opt_kdb.h"
42#include "opt_panic.h"
43#include "opt_sched.h"
44#include "opt_watchdog.h"
45
46#include <sys/param.h>

--- 166 unchanged lines hidden (view full) ---

213 kern_psignal(initproc, SIGUSR2);
214 else if (howto & RB_HALT)
215 kern_psignal(initproc, SIGUSR1);
216 else
217 kern_psignal(initproc, SIGINT);
218 PROC_UNLOCK(initproc);
219 } else {
220 /* No init(8) running, so simply reboot. */
221 kern_reboot(RB_NOSYNC);
221 kern_reboot(howto | RB_NOSYNC);
222 }
222 }
223 return;
224}
225
226static void
227print_uptime(void)
228{
229 int f;
230 struct timespec ts;
231

--- 665 unchanged lines hidden ---
223}
224
225static void
226print_uptime(void)
227{
228 int f;
229 struct timespec ts;
230

--- 665 unchanged lines hidden ---