Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 376e1d25 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds
Browse files

reparent_thread: use same_thread_group()



Trivial, use same_thread_group() in reparent_thread().

Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d839fd4d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -722,7 +722,7 @@ reparent_thread(struct task_struct *p, struct task_struct *father, int traced)
	/* If this is a threaded reparent there is no need to
	/* If this is a threaded reparent there is no need to
	 * notify anyone anything has happened.
	 * notify anyone anything has happened.
	 */
	 */
	if (p->real_parent->group_leader == father->group_leader)
	if (same_thread_group(p->real_parent, father))
		return;
		return;


	/* We don't want people slaying init.  */
	/* We don't want people slaying init.  */