From 6dd051347d8017289be1ceb50519b0ba197013ce Mon Sep 17 00:00:00 2001 From: Oleg Nesterov Date: Fri, 24 Jun 2011 17:34:06 +0200 Subject: [PATCH] --- yaml --- r: 256859 b: refs/heads/master c: 0347e17739095c58c0194fed6a61aced3536d258 h: refs/heads/master i: 256857: d443c3572ad3e8612843b033ec1d59fc470928b7 256855: c191627b559d910d2027add0dc13909ae305342c v: v3 --- [refs] | 2 +- trunk/include/linux/ptrace.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 33611a5ad71d..e57293769c13 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 087806b1281563e4ae7a5bce3155f894af5f4118 +refs/heads/master: 0347e17739095c58c0194fed6a61aced3536d258 diff --git a/trunk/include/linux/ptrace.h b/trunk/include/linux/ptrace.h index bb157bdd0c55..eae381d584f9 100644 --- a/trunk/include/linux/ptrace.h +++ b/trunk/include/linux/ptrace.h @@ -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)