Module Name:    src
Committed By:   christos
Date:           Mon Dec 16 12:56:12 UTC 2024

Modified Files:
        src/sys/kern: sys_ptrace_common.c

Log Message:
check both for PT_KILL and SIGKILL.


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/sys/kern/sys_ptrace_common.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/sys_ptrace_common.c
diff -u src/sys/kern/sys_ptrace_common.c:1.94 src/sys/kern/sys_ptrace_common.c:1.95
--- src/sys/kern/sys_ptrace_common.c:1.94	Sun Dec 15 12:42:34 2024
+++ src/sys/kern/sys_ptrace_common.c	Mon Dec 16 07:56:12 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_ptrace_common.c,v 1.94 2024/12/15 17:42:34 christos Exp $	*/
+/*	$NetBSD: sys_ptrace_common.c,v 1.95 2024/12/16 12:56:12 christos Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -107,7 +107,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.94 2024/12/15 17:42:34 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.95 2024/12/16 12:56:12 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ptrace.h"
@@ -966,7 +966,7 @@ ptrace_sendsig(struct lwp *l, int req, s
 		else
 			lwp_unstop(lt);
 
-		if (signo != SIGKILL)
+		if (req != PT_KILL || signo != SIGKILL)
 			return 0;
 	}
 

Reply via email to