diff options
-rw-r--r-- | include/linux/tracehook.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
502 | static inline int tracehook_notify_death(struct task_struct *task, | 502 | static inline int tracehook_notify_death(struct task_struct *task, |
503 | void **death_cookie, int group_dead) | 503 | void **death_cookie, int group_dead) |
504 | { | 504 | { |
505 | if (task->exit_signal == -1) | 505 | if (task_detached(task)) |
506 | return task->ptrace ? SIGCHLD : DEATH_REAP; | 506 | return task->ptrace ? SIGCHLD : DEATH_REAP; |
507 | 507 | ||
508 | /* | 508 | /* |