aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/ptrace.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2012-02-10 00:02:13 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2012-02-10 00:02:13 +0000
commitdb3273398b408f29b088b0b4ceaf65ce1a58d936 (patch)
tree6c1604f05fbb306e388325c5cec342e42e38433c /sys/sys/ptrace.h
parent3e7cc3cab317ccb1a20026e13b4bef3810af863c (diff)
downloadsrc-db3273398b408f29b088b0b4ceaf65ce1a58d936.tar.gz
src-db3273398b408f29b088b0b4ceaf65ce1a58d936.zip
Mark the automatically attached child with PL_FLAG_CHILD in struct
lwpinfo flags, for PT_FOLLOWFORK auto-attachment. In collaboration with: Dmitry Mikulin <dmitrym juniper net> MFC after: 1 week
Notes
Notes: svn path=/head/; revision=231320
Diffstat (limited to 'sys/sys/ptrace.h')
-rw-r--r--sys/sys/ptrace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/ptrace.h b/sys/sys/ptrace.h
index 2583d59466d0..8a02495e6ec1 100644
--- a/sys/sys/ptrace.h
+++ b/sys/sys/ptrace.h
@@ -107,6 +107,7 @@ struct ptrace_lwpinfo {
#define PL_FLAG_EXEC 0x10 /* exec(2) succeeded */
#define PL_FLAG_SI 0x20 /* siginfo is valid */
#define PL_FLAG_FORKED 0x40 /* new child */
+#define PL_FLAG_CHILD 0x80 /* I am from child */
sigset_t pl_sigmask; /* LWP signal mask */
sigset_t pl_siglist; /* LWP pending signal */
struct __siginfo pl_siginfo; /* siginfo for signal */