Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Process the signal now, otherwise calling issignal(...
details: https://anonhg.NetBSD.org/src/rev/f3ebf19bcabb
branches: trunk
changeset: 769077:f3ebf19bcabb
user: christos <christos%NetBSD.org@localhost>
date: Tue Aug 30 22:45:55 2011 +0000
description:
Process the signal now, otherwise calling issignal() and ignoring
the return will lose the signal if it came from the debugger
(issignal() clears p->p_xstat)
diffstat:
sys/kern/sys_process.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 415992c0c3f9 -r f3ebf19bcabb sys/kern/sys_process.c
--- a/sys/kern/sys_process.c Tue Aug 30 22:23:06 2011 +0000
+++ b/sys/kern/sys_process.c Tue Aug 30 22:45:55 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_process.c,v 1.158 2011/08/29 17:31:50 jmcneill Exp $ */
+/* $NetBSD: sys_process.c,v 1.159 2011/08/30 22:45:55 christos Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_process.c,v 1.158 2011/08/29 17:31:50 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_process.c,v 1.159 2011/08/30 22:45:55 christos Exp $");
#include "opt_ptrace.h"
#include "opt_ktrace.h"
@@ -1051,6 +1051,7 @@
{
struct lwp *l = curlwp;
struct proc *p = l->l_proc, *pp;
+ int sig;
mutex_enter(proc_lock);
mutex_enter(p->p_lock);
@@ -1072,7 +1073,8 @@
* from userret().
*/
KERNEL_UNLOCK_ALL(l, &l->l_biglocks);
- (void)issignal(l);
+ if ((sig = issignal(l)) != 0)
+ postsig(sig);
mutex_exit(p->p_lock);
KERNEL_LOCK(l->l_biglocks, l);
}
Home |
Main Index |
Thread Index |
Old Index