summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_xxx.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-07-30 17:10:36 +0000
committerdg <dg@FreeBSD.org>1995-07-30 17:10:36 +0000
commit576802250606e3b925de01f38da29b2235a69f88 (patch)
tree25f676de6182c623e686e2f78a0c7120177dfcdb /sys/kern/kern_xxx.c
parent712321d48eb8f50c583152e39836c50b81a6d5ad (diff)
downloadFreeBSD-src-576802250606e3b925de01f38da29b2235a69f88.zip
FreeBSD-src-576802250606e3b925de01f38da29b2235a69f88.tar.gz
Rewrote shutdown_nice() to fix the init-not-yet-started panic().
Diffstat (limited to 'sys/kern/kern_xxx.c')
-rw-r--r--sys/kern/kern_xxx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c
index 23439a0..3c865e4 100644
--- a/sys/kern/kern_xxx.c
+++ b/sys/kern/kern_xxx.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)kern_xxx.c 8.2 (Berkeley) 11/14/93
- * $Id: kern_xxx.c,v 1.9 1994/12/04 19:58:43 phk Exp $
+ * $Id: kern_xxx.c,v 1.10 1995/05/30 08:05:49 rgrimes Exp $
*/
#include <sys/param.h>
@@ -169,8 +169,8 @@ shutdown_nice(void)
register struct proc *p;
/* Send a signal to init(8) and have it shutdown the world */
- p = pfind(1);
- psignal(p, SIGINT);
+ if (initproc != NULL)
+ psignal(initproc, SIGINT);
return;
}
OpenPOWER on IntegriCloud