Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern make lwp_unstop look like proc_unstop. If p->p_xsta...
details: https://anonhg.NetBSD.org/src/rev/bbc651d67362
branches: trunk
changeset: 769103:bbc651d67362
user: christos <christos%NetBSD.org@localhost>
date: Wed Aug 31 16:04:39 2011 +0000
description:
make lwp_unstop look like proc_unstop. If p->p_xstat is set, then make it
runnable so that it can receive the signal.
diffstat:
sys/kern/kern_lwp.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 99ba59200d79 -r bbc651d67362 sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c Wed Aug 31 15:48:32 2011 +0000
+++ b/sys/kern/kern_lwp.c Wed Aug 31 16:04:39 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lwp.c,v 1.162 2011/08/07 21:13:05 rmind Exp $ */
+/* $NetBSD: kern_lwp.c,v 1.163 2011/08/31 16:04:39 christos Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -211,7 +211,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.162 2011/08/07 21:13:05 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.163 2011/08/31 16:04:39 christos Exp $");
#include "opt_ddb.h"
#include "opt_lockdebug.h"
@@ -471,6 +471,9 @@
if (l->l_wchan == NULL) {
/* setrunnable() will release the lock. */
setrunnable(l);
+ } else if (p->p_xstat && (l->l_flag & LW_SINTR) != 0) {
+ /* setrunnable() so we can receive the signal */
+ setrunnable(l);
} else {
l->l_stat = LSSLEEP;
p->p_nrlwps++;
Home |
Main Index |
Thread Index |
Old Index