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 <[email protected]>
include/linux/tracehook.h renamed from include/linux/tracehook.h~5_NOTIFY_USE_HELPER +1 -1
@@ -507,7 +507,7 @@ static inline int tracehook_notify_jctl(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 ;/*
Roland McGrath
Acked-byAcked-by Roland McGrath <[email protected]>