aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 59a104c673f7..9220967f4256 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -97,7 +97,7 @@ static void __exit_signal(struct task_struct *tsk)
97 * If there is any task waiting for the group exit 97 * If there is any task waiting for the group exit
98 * then notify it: 98 * then notify it:
99 */ 99 */
100 if (sig->group_exit_task && atomic_read(&sig->count) == sig->notify_count) 100 if (sig->notify_count > 0 && !--sig->notify_count)
101 wake_up_process(sig->group_exit_task); 101 wake_up_process(sig->group_exit_task);
102 102
103 if (tsk == sig->curr_target) 103 if (tsk == sig->curr_target)