Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern PR/kern/53202: Kernel hangs running t_...



details:   https://anonhg.NetBSD.org/src/rev/aa074431b7c6
branches:  trunk
changeset: 318437:aa074431b7c6
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Apr 23 15:51:00 2018 +0000
description:
PR/kern/53202: Kernel hangs running t_ptrace_wait:resume1 test, revert
previous.

diffstat:

 sys/kern/kern_lwp.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r cb5b70701fee -r aa074431b7c6 sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c       Mon Apr 23 15:40:33 2018 +0000
+++ b/sys/kern/kern_lwp.c       Mon Apr 23 15:51:00 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_lwp.c,v 1.191 2017/12/02 22:51:22 christos Exp $  */
+/*     $NetBSD: kern_lwp.c,v 1.192 2018/04/23 15:51:00 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.191 2017/12/02 22:51:22 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.192 2018/04/23 15:51:00 christos Exp $");
 
 #include "opt_ddb.h"
 #include "opt_lockdebug.h"
@@ -645,9 +645,8 @@
                 */
                if (exiting) {
                        KASSERT(p->p_nlwps > 1);
-                       error = cv_wait_sig(&p->p_lwpcv, p->p_lock);
-                       if (error == 0)
-                               error = EAGAIN;
+                       cv_wait(&p->p_lwpcv, p->p_lock);
+                       error = EAGAIN;
                        break;
                }
 



Home | Main Index | Thread Index | Old Index