diff options
author | kib <kib@FreeBSD.org> | 2012-02-10 00:02:13 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-02-10 00:02:13 +0000 |
commit | 956d09353b3831c6d61a9eee9ce9572333b1e8ed (patch) | |
tree | 6c1604f05fbb306e388325c5cec342e42e38433c /sys/sys | |
parent | 1a089455d64a86fb9e288851d23455f9390f4912 (diff) | |
download | FreeBSD-src-956d09353b3831c6d61a9eee9ce9572333b1e8ed.zip FreeBSD-src-956d09353b3831c6d61a9eee9ce9572333b1e8ed.tar.gz |
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
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/proc.h | 1 | ||||
-rw-r--r-- | sys/sys/ptrace.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 9ebfe83..0245e88 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -384,6 +384,7 @@ do { \ process */ #define TDB_STOPATFORK 0x00000080 /* Stop at the return from fork (child only) */ +#define TDB_CHILD 0x00000100 /* New child indicator for ptrace() */ /* * "Private" flags kept in td_pflags: diff --git a/sys/sys/ptrace.h b/sys/sys/ptrace.h index 2583d59..8a02495 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 */ |