Module Name: src
Committed By: christos
Date: Wed Aug 31 16:04:39 UTC 2011
Modified Files:
src/sys/kern: kern_lwp.c
Log Message:
make lwp_unstop look like proc_unstop. If p->p_xstat is set, then make it
runnable so that it can receive the signal.
To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/sys/kern/kern_lwp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/kern_lwp.c
diff -u src/sys/kern/kern_lwp.c:1.162 src/sys/kern/kern_lwp.c:1.163
--- src/sys/kern/kern_lwp.c:1.162 Sun Aug 7 17:13:05 2011
+++ src/sys/kern/kern_lwp.c Wed Aug 31 12:04:39 2011
@@ -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++;