From: Oleg Nesterov Date: Thu, 2 Apr 2009 23:58:20 +0000 (-0700) Subject: tracehook_notify_death: use task_detached() helper X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bb24c679a51b1a9b726b901330649e3861814ac0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git tracehook_notify_death: use task_detached() helper Now that task_detached() is exported, change tracehook_notify_death() to use this helper, nobody else checks ->exit_signal == -1 by hand. Signed-off-by: Oleg Nesterov Cc: "Eric W. Biederman" Cc: "Metzger, Markus T" Acked-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/tracehook.h b/include/linux/tracehook.h index eb4c6545b384..c7aa154f4bfc 100644 --- a/include/linux/tracehook.h +++ b/include/linux/tracehook.h @@ -502,7 +502,7 @@ static inline int tracehook_notify_jctl(int notify, int why) static inline int tracehook_notify_death(struct task_struct *task, void **death_cookie, int group_dead) { - if (task->exit_signal == -1) + if (task_detached(task)) return task->ptrace ? SIGCHLD : DEATH_REAP; /*