aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2013-02-07 15:36:24 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2013-02-07 15:36:24 +0000
commit2ee83a16c0142a253bca069298aabca21513d8bd (patch)
tree75e37af6c2d243479062f03c4ac5d2e79d1d7feb /lib
parent888d4d4f865af1a6b0e1a25189d5157a25314444 (diff)
downloadsrc-2ee83a16c0142a253bca069298aabca21513d8bd.tar.gz
src-2ee83a16c0142a253bca069298aabca21513d8bd.zip
Document the detail of interaction between vfork and PT_TRACEME.
MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=246485
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/ptrace.212
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2
index 9dda8ee1b41c..90c45442561e 100644
--- a/lib/libc/sys/ptrace.2
+++ b/lib/libc/sys/ptrace.2
@@ -2,7 +2,7 @@
.\" $NetBSD: ptrace.2,v 1.2 1995/02/27 12:35:37 cgd Exp $
.\"
.\" This file is in the public domain.
-.Dd February 19, 2012
+.Dd February 7, 2013
.Dt PTRACE 2
.Os
.Sh NAME
@@ -100,6 +100,16 @@ or any of the routines built on it
it will stop before executing the first instruction of the new image.
Also, any setuid or setgid bits on the executable being executed will
be ignored.
+If the child was created by
+.Xr vfork 2
+system call or
+.Xr rfork(2)
+call with the
+.Dv RFMEM
+flag specified, the debugging events are reported to the parent
+only after the
+.Xr execve 2
+is executed.
.It Dv PT_READ_I , Dv PT_READ_D
These requests read a single
.Vt int