Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nathanw_sa]: src/sys/kern Fix previous kludge to deal with the case wher...



details:   https://anonhg.NetBSD.org/src/rev/3fd1c16493e9
branches:  nathanw_sa
changeset: 506723:3fd1c16493e9
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Thu Jan 09 23:02:03 2003 +0000

description:
Fix previous kludge to deal with the case where proc_unstop() returns
NULL.

diffstat:

 sys/kern/kern_sig.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 50051199c214 -r 3fd1c16493e9 sys/kern/kern_sig.c
--- a/sys/kern/kern_sig.c       Thu Jan 09 19:27:51 2003 +0000
+++ b/sys/kern/kern_sig.c       Thu Jan 09 23:02:03 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sig.c,v 1.112.2.36 2003/01/03 21:42:50 nathanw Exp $      */
+/*     $NetBSD: kern_sig.c,v 1.112.2.37 2003/01/09 23:02:03 nathanw Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.112.2.36 2003/01/03 21:42:50 nathanw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.112.2.37 2003/01/09 23:02:03 nathanw Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_compat_sunos.h"
@@ -1002,7 +1002,7 @@
                                 * XXX see note in proc_unstop(). SIGKILL
                                 * XXX and SIGCONT have conflicting needs.
                                 */
-                               if (l->l_stat == LSSLEEP)
+                               if (l && (l->l_stat == LSSLEEP))
                                        l = NULL;
                                if (l && (action == SIG_CATCH))
                                        goto runfast;



Home | Main Index | Thread Index | Old Index