aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/exit.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 019a2843bf95..59a104c673f7 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -856,12 +856,9 @@ static void exit_notify(struct task_struct *tsk, int group_dead)
856 856
857 tsk->exit_state = signal == DEATH_REAP ? EXIT_DEAD : EXIT_ZOMBIE; 857 tsk->exit_state = signal == DEATH_REAP ? EXIT_DEAD : EXIT_ZOMBIE;
858 858
859 /* mt-exec, de_thread() is waiting for us */ 859 /* mt-exec, de_thread() is waiting for group leader */
860 if (thread_group_leader(tsk) && 860 if (unlikely(tsk->signal->notify_count < 0))
861 tsk->signal->group_exit_task &&
862 tsk->signal->notify_count < 0)
863 wake_up_process(tsk->signal->group_exit_task); 861 wake_up_process(tsk->signal->group_exit_task);
864
865 write_unlock_irq(&tasklist_lock); 862 write_unlock_irq(&tasklist_lock);
866 863
867 tracehook_report_death(tsk, signal, cookie, group_dead); 864 tracehook_report_death(tsk, signal, cookie, group_dead);