Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Test p->p_sa instead of p->p_flag & P_SA, as the la...
details: https://anonhg.NetBSD.org/src/rev/629fcdb3e492
branches: trunk
changeset: 543128:629fcdb3e492
user: nathanw <nathanw%NetBSD.org@localhost>
date: Mon Feb 17 23:45:47 2003 +0000
description:
Test p->p_sa instead of p->p_flag & P_SA, as the latter may have been
cleared by sigexit().
diffstat:
sys/kern/kern_exit.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 16b8bd22e43c -r 629fcdb3e492 sys/kern/kern_exit.c
--- a/sys/kern/kern_exit.c Mon Feb 17 23:45:00 2003 +0000
+++ b/sys/kern/kern_exit.c Mon Feb 17 23:45:47 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exit.c,v 1.109 2003/02/14 10:11:57 dsl Exp $ */
+/* $NetBSD: kern_exit.c,v 1.110 2003/02/17 23:45:47 nathanw Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exit.c,v 1.109 2003/02/14 10:11:57 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exit.c,v 1.110 2003/02/17 23:45:47 nathanw Exp $");
#include "opt_ktrace.h"
#include "opt_perfctrs.h"
@@ -176,7 +176,7 @@
* We're trying to get out of here.
*/
sa = 0;
- if (l->l_flag & L_SA) {
+ if (p->p_sa != NULL) {
l->l_flag &= ~L_SA;
p->p_flag &= ~P_SA;
sa = 1;
Home |
Main Index |
Thread Index |
Old Index