Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern kern/51621: When attaching to a child send it a SIG...
details: https://anonhg.NetBSD.org/src/rev/4d6f029ce91d
branches: trunk
changeset: 348858:4d6f029ce91d
user: christos <christos%NetBSD.org@localhost>
date: Fri Nov 11 17:10:04 2016 +0000
description:
kern/51621: When attaching to a child send it a SIGTRAP not a SIGSTOP like
Linux and FreeBSD do.
diffstat:
sys/kern/sys_ptrace_common.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3be0f91ad4c7 -r 4d6f029ce91d sys/kern/sys_ptrace_common.c
--- a/sys/kern/sys_ptrace_common.c Fri Nov 11 17:08:54 2016 +0000
+++ b/sys/kern/sys_ptrace_common.c Fri Nov 11 17:10:04 2016 +0000
@@ -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 @@
* Stop the target.
*/
proc_changeparent(t, p);
- signo = SIGSTOP;
+ signo = SIGTRAP;
goto sendsig;
case PT_GET_EVENT_MASK:
Home |
Main Index |
Thread Index |
Old Index