diff options
author | dg <dg@FreeBSD.org> | 1995-07-30 17:10:36 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-07-30 17:10:36 +0000 |
commit | 576802250606e3b925de01f38da29b2235a69f88 (patch) | |
tree | 25f676de6182c623e686e2f78a0c7120177dfcdb /sys | |
parent | 712321d48eb8f50c583152e39836c50b81a6d5ad (diff) | |
download | FreeBSD-src-576802250606e3b925de01f38da29b2235a69f88.zip FreeBSD-src-576802250606e3b925de01f38da29b2235a69f88.tar.gz |
Rewrote shutdown_nice() to fix the init-not-yet-started panic().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_xxx.c | 6 |
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; } |