LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] reparent_thread: use same_thread_group()
@ 2008-03-03  4:17 Oleg Nesterov
  2008-03-04  8:37 ` Roland McGrath
  0 siblings, 1 reply; 2+ messages in thread
From: Oleg Nesterov @ 2008-03-03  4:17 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Roland McGrath, linux-kernel

Trivial, use same_thread_group() in reparent_thread().

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>

--- 25/kernel/exit.c~6_EN_SG	2008-03-03 06:24:56.000000000 +0300
+++ 25/kernel/exit.c	2008-03-03 06:46:00.000000000 +0300
@@ -653,7 +653,7 @@ reparent_thread(struct task_struct *p, s
 	/* If this is a threaded reparent there is no need to
 	 * notify anyone anything has happened.
 	 */
-	if (p->real_parent->group_leader == father->group_leader)
+	if (same_thread_group(p->real_parent, father))
 		return;
 
 	/* We don't want people slaying init.  */


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] reparent_thread: use same_thread_group()
  2008-03-03  4:17 [PATCH] reparent_thread: use same_thread_group() Oleg Nesterov
@ 2008-03-04  8:37 ` Roland McGrath
  0 siblings, 0 replies; 2+ messages in thread
From: Roland McGrath @ 2008-03-04  8:37 UTC (permalink / raw)
  To: Oleg Nesterov; +Cc: Andrew Morton, linux-kernel

Looks good to me.

Thanks,
Roland

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-04  8:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-03  4:17 [PATCH] reparent_thread: use same_thread_group() Oleg Nesterov
2008-03-04  8:37 ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).