From 576802250606e3b925de01f38da29b2235a69f88 Mon Sep 17 00:00:00 2001 From: dg Date: Sun, 30 Jul 1995 17:10:36 +0000 Subject: [PATCH] Rewrote shutdown_nice() to fix the init-not-yet-started panic(). --- sys/kern/kern_xxx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c index 23439a01ae9..3c865e47207 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 @@ -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; } -- 2.45.2