Module Name: src
Committed By: christos
Date: Fri Nov 11 17:10:04 UTC 2016
Modified Files:
src/sys/kern: sys_ptrace_common.c
Log Message:
kern/51621: When attaching to a child send it a SIGTRAP not a SIGSTOP like
Linux and FreeBSD do.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 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.2 src/sys/kern/sys_ptrace_common.c:1.3
--- src/sys/kern/sys_ptrace_common.c:1.2 Fri Nov 4 14:14:04 2016
+++ src/sys/kern/sys_ptrace_common.c Fri Nov 11 12:10:04 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_ptrace_common.c,v 1.2 2016/11/04 18:14:04 christos Exp $ */
+/* $NetBSD: sys_ptrace_common.c,v 1.3 2016/11/11 17:10:04 christos 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.2 2016/11/04 18:14:04 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.3 2016/11/11 17:10:04 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_ptrace.h"
@@ -814,7 +814,7 @@ do_ptrace(struct ptrace_methods *ptm, st
* Stop the target.
*/
proc_changeparent(t, p);
- signo = SIGSTOP;
+ signo = SIGTRAP;
goto sendsig;
case PT_GET_EVENT_MASK: