X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fptrace.h;h=f98501ba557eea676a827aed770d57b0b4b12c56;hb=2a5f2e3e6cd1ce9fb3f8b186b6bc9aa1f1497a92;hp=6ab80714a9169c67ae116b5e4b0ae9aaceb4620e;hpb=37969581301e50872a1ae84dc73962b5f7ee6b76;p=linux-2.6 diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h index 6ab80714a9..f98501ba55 100644 --- a/include/linux/ptrace.h +++ b/include/linux/ptrace.h @@ -67,7 +67,6 @@ #define PT_TRACE_EXEC 0x00000080 #define PT_TRACE_VFORK_DONE 0x00000100 #define PT_TRACE_EXIT 0x00000200 -#define PT_ATTACHED 0x00000400 /* parent != real_parent */ #define PT_TRACE_MASK 0x000003f4 @@ -99,6 +98,10 @@ extern void ptrace_untrace(struct task_struct *child); extern int ptrace_may_attach(struct task_struct *task); extern int __ptrace_may_attach(struct task_struct *task); +static inline int ptrace_reparented(struct task_struct *child) +{ + return child->real_parent != child->parent; +} static inline void ptrace_link(struct task_struct *child, struct task_struct *new_parent) {