Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Document PT_STOP, update PT_KILL in the ptrace(...
details: https://anonhg.NetBSD.org/src/rev/819b1e2c77a2
branches: trunk
changeset: 1004027:819b1e2c77a2
user: kamil <kamil%NetBSD.org@localhost>
date: Wed Oct 09 13:42:37 2019 +0000
description:
Document PT_STOP, update PT_KILL in the ptrace(2) man-page
Formatting by <mgorny>
diffstat:
lib/libc/sys/ptrace.2 | 34 +++++++++++++++++++++++++++++++---
1 files changed, 31 insertions(+), 3 deletions(-)
diffs (52 lines):
diff -r 08abd87ba481 -r 819b1e2c77a2 lib/libc/sys/ptrace.2
--- a/lib/libc/sys/ptrace.2 Wed Oct 09 13:25:20 2019 +0000
+++ b/lib/libc/sys/ptrace.2 Wed Oct 09 13:42:37 2019 +0000
@@ -1,7 +1,7 @@
-.\" $NetBSD: ptrace.2,v 1.80 2019/07/30 20:18:11 mgorny Exp $
+.\" $NetBSD: ptrace.2,v 1.81 2019/10/09 13:42:37 kamil Exp $
.\"
.\" This file is in the public domain.
-.Dd July 11, 2019
+.Dd October 9, 2019
.Dt PTRACE 2
.Os
.Sh NAME
@@ -249,9 +249,37 @@
.It Dv PT_KILL
The traced process terminates, as if
.Dv PT_CONTINUE
-had been used with
+has been used with
.Dv SIGKILL
given as the signal to be delivered.
+However, unlike
+.Dv PT_CONTINUE ,
+.Dv PT_KILL
+can be used on a non-stopped tracee.
+The
+.Fa addr
+and
+.Fa data
+arguments are ignored.
+.It Dv PT_STOP
+The traced process stops, as if
+.Xr kill
+has been used with
+.Dv SIGSTOP
+given as the signal to be delivered.
+.Xr wait 2
+will report the child (again) as stopped even if it was stopped before.
+The
+.Fa addr
+and
+.Fa data
+arguments are ignored.
+Unlike
+.Dv PT_CONTINUE
+call with
+.Dv SIGSTOP ,
+.Dv PT_STOP
+works both on running and stopped processes.
.It Dv PT_ATTACH
This request allows a process to gain control of an otherwise unrelated
process and begin tracing it.
Home |
Main Index |
Thread Index |
Old Index