Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/darwin When wakeing up a process that was sleepin...
details: https://anonhg.NetBSD.org/src/rev/6be8e3f1eecf
branches: trunk
changeset: 555952:6be8e3f1eecf
user: manu <manu%NetBSD.org@localhost>
date: Thu Dec 04 22:00:03 2003 +0000
description:
When wakeing up a process that was sleeping for a signal when we have a Mach
exception, don't temper with ps_sigwaited.
diffstat:
sys/compat/darwin/darwin_signal.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (31 lines):
diff -r 26be8c646619 -r 6be8e3f1eecf sys/compat/darwin/darwin_signal.c
--- a/sys/compat/darwin/darwin_signal.c Thu Dec 04 21:48:15 2003 +0000
+++ b/sys/compat/darwin/darwin_signal.c Thu Dec 04 22:00:03 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: darwin_signal.c,v 1.10 2003/12/03 18:40:07 manu Exp $ */
+/* $NetBSD: darwin_signal.c,v 1.11 2003/12/04 22:00:03 manu Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: darwin_signal.c,v 1.10 2003/12/03 18:40:07 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: darwin_signal.c,v 1.11 2003/12/04 22:00:03 manu Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -179,11 +179,8 @@
if ((error == 0) &&
p->p_sigctx.ps_sigwaited &&
sigismember(p->p_sigctx.ps_sigwait, signo) &&
- p->p_stat != SSTOP) {
- p->p_sigctx.ps_sigwaited->ksi_info = ksi->ksi_info;
- p->p_sigctx.ps_sigwaited = NULL;
+ (p->p_stat != SSTOP))
wakeup_one(&p->p_sigctx.ps_sigwait);
- }
return error;
}
Home |
Main Index |
Thread Index |
Old Index