Lines Matching refs:leader
906 struct task_struct *leader = tsk->group_leader; in de_thread() local
912 if (likely(leader->exit_state)) in de_thread()
932 tsk->start_time = leader->start_time; in de_thread()
934 BUG_ON(!same_thread_group(leader, tsk)); in de_thread()
949 tsk->pid = leader->pid; in de_thread()
950 attach_pid(tsk, PIDTYPE_PID, task_pid(leader)); in de_thread()
951 transfer_pid(leader, tsk, PIDTYPE_PGID); in de_thread()
952 transfer_pid(leader, tsk, PIDTYPE_SID); in de_thread()
954 list_replace_rcu(&leader->tasks, &tsk->tasks); in de_thread()
955 list_replace_init(&leader->sibling, &tsk->sibling); in de_thread()
958 leader->group_leader = tsk; in de_thread()
961 leader->exit_signal = -1; in de_thread()
963 BUG_ON(leader->exit_state != EXIT_ZOMBIE); in de_thread()
964 leader->exit_state = EXIT_DEAD; in de_thread()
971 if (unlikely(leader->ptrace)) in de_thread()
972 __wake_up_parent(leader, leader->parent); in de_thread()
976 release_task(leader); in de_thread()