aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 7a14a2b504f5..fbb5d94c8bbc 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -840,8 +840,7 @@ static void exit_notify(struct task_struct *tsk, int group_dead)
840 */ 840 */
841 if (tsk->exit_signal != SIGCHLD && !task_detached(tsk) && 841 if (tsk->exit_signal != SIGCHLD && !task_detached(tsk) &&
842 (tsk->parent_exec_id != tsk->real_parent->self_exec_id || 842 (tsk->parent_exec_id != tsk->real_parent->self_exec_id ||
843 tsk->self_exec_id != tsk->parent_exec_id) && 843 tsk->self_exec_id != tsk->parent_exec_id))
844 !capable(CAP_KILL))
845 tsk->exit_signal = SIGCHLD; 844 tsk->exit_signal = SIGCHLD;
846 845
847 signal = tracehook_notify_death(tsk, &cookie, group_dead); 846 signal = tracehook_notify_death(tsk, &cookie, group_dead);