X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fptrace.h;h=f98501ba557eea676a827aed770d57b0b4b12c56;hb=c6b96d195a0fd132d6e8c783216d1d3f686e5ba8;hp=ebe0c17039cf0f8dec6d6207da29052463a610d3;hpb=03054de1e0b90b33e9974107d84dabd2509f5898;p=linux-2.6 diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h index ebe0c17039..f98501ba55 100644 --- a/include/linux/ptrace.h +++ b/include/linux/ptrace.h @@ -98,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) {