Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Correct the same expression on both sides of |



details:   https://anonhg.NetBSD.org/src/rev/400e5cbe73c1
branches:  trunk
changeset: 1004000:400e5cbe73c1
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Oct 08 12:29:57 2019 +0000

description:
Correct the same expression on both sides of |

PR sw-bug/54610 by David Binderman

diffstat:

 sys/kern/sys_ptrace_common.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9ec49069a9e3 -r 400e5cbe73c1 sys/kern/sys_ptrace_common.c
--- a/sys/kern/sys_ptrace_common.c      Tue Oct 08 07:33:14 2019 +0000
+++ b/sys/kern/sys_ptrace_common.c      Tue Oct 08 12:29:57 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_ptrace_common.c,v 1.64 2019/10/07 21:32:51 kamil Exp $     */
+/*     $NetBSD: sys_ptrace_common.c,v 1.65 2019/10/08 12:29:57 kamil Exp $     */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.64 2019/10/07 21:32:51 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.65 2019/10/08 12:29:57 kamil Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ptrace.h"
@@ -1261,7 +1261,7 @@
                                        break;
                        }
                } else {
-                       if (lt->l_flag & (LW_WSUSPEND | LW_WSUSPEND)) {
+                       if (lt->l_flag & (LW_WSUSPEND | LW_DBGSUSPEND)) {
                                error = EDEADLK;
                                break;
                        }



Home | Main Index | Thread Index | Old Index