From 9604f28c0a07c1ce42c6ae9c11a715183c5275e3 Mon Sep 17 00:00:00 2001 From: Oleg Nesterov Date: Thu, 2 Apr 2009 16:58:20 -0700 Subject: [PATCH] --- yaml --- r: 139696 b: refs/heads/master c: bb24c679a51b1a9b726b901330649e3861814ac0 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/tracehook.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index aab505e30a22..facd80184403 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5dfc80be73dd0c212d2e6dd8dbf5afa07e680bbe +refs/heads/master: bb24c679a51b1a9b726b901330649e3861814ac0 diff --git a/trunk/include/linux/tracehook.h b/trunk/include/linux/tracehook.h index eb4c6545b384..c7aa154f4bfc 100644 --- a/trunk/include/linux/tracehook.h +++ b/trunk/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; /*