ptrace: ptrace_reparented() should check same_thread_group()
[deliverable/linux.git] / include / linux / ptrace.h
index bb157bdd0c55d20ce71d3c66c89e74126b1f6605..eae381d584f9f8318098629551a8ade5a6e5e71e 100644 (file)
@@ -136,7 +136,7 @@ extern bool ptrace_may_access(struct task_struct *task, unsigned int mode);
 
 static inline int ptrace_reparented(struct task_struct *child)
 {
-       return child->real_parent != child->parent;
+       return !same_thread_group(child->real_parent, child->parent);
 }
 
 static inline void ptrace_unlink(struct task_struct *child)
This page took 0.078459 seconds and 5 git commands to generate.