From: Oleg Nesterov Date: Wed, 22 Jun 2011 21:10:26 +0000 (+0200) Subject: redefine thread_group_leader() as exit_signal >= 0 X-Git-Tag: v3.1-rc1~308^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=087806b1281563e4ae7a5bce3155f894af5f4118;p=pandora-kernel.git redefine thread_group_leader() as exit_signal >= 0 Change de_thread() to set old_leader->exit_signal = -1. This is good for the consistency, it is no longer the leader and all sub-threads have exit_signal = -1 set by copy_process(CLONE_THREAD). And this allows us to micro-optimize thread_group_leader(), it can simply check exit_signal >= 0. This also makes sense because we should move ->group_leader from task_struct to signal_struct. Signed-off-by: Oleg Nesterov Reviewed-by: Tejun Heo --- Reading git-diff-tree failed