From: deraadt Date: Fri, 15 Dec 1995 15:40:31 +0000 (+0000) Subject: call doshutdownhooks() earlier X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4bd62a07ce3b2e617c67b317cf65205aac098334;p=openbsd call doshutdownhooks() earlier --- diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 674f069b821..d1610181cc3 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.180.2.1 1995/10/15 22:11:38 mycroft Exp $ */ +/* $NetBSD: machdep.c,v 1.182 1995/12/14 18:31:20 ghudson Exp $ */ /*- * Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved. @@ -694,6 +694,7 @@ boot(howto) } splhigh(); if (howto & RB_HALT) { + doshutdownhooks(); printf("\n"); printf("The operating system has halted.\n"); printf("Please press any key to reboot.\n\n"); @@ -704,8 +705,8 @@ boot(howto) dumppcb.pcb_cr3 = rcr3(); dumpsys(); } + doshutdownhooks(); } - doshutdownhooks(); printf("rebooting...\n"); cpu_reset(); for(;;) ;