diff options
author | Oleg Nesterov <oleg@redhat.com> | 2011-06-22 17:09:54 -0400 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2011-06-27 14:30:09 -0400 |
commit | e550f14dc6322e794d4e70825f63c9c99177ae8b (patch) | |
tree | 64f918a0d70f82842211a3c0d54ca658877b5b5d /include/linux/sched.h | |
parent | 0976a03e5ce8ec346e985f21046d7a75bb7fdffd (diff) |
kill task_detached()
Upadate the last user of task_detached(), wait_task_zombie(), to
use thread_group_leader() and kill task_detached().
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 0cb4f097f76c..39acee2c8929 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2318,11 +2318,6 @@ static inline int thread_group_empty(struct task_struct *p) | |||
2318 | #define delay_group_leader(p) \ | 2318 | #define delay_group_leader(p) \ |
2319 | (thread_group_leader(p) && !thread_group_empty(p)) | 2319 | (thread_group_leader(p) && !thread_group_empty(p)) |
2320 | 2320 | ||
2321 | static inline int task_detached(struct task_struct *p) | ||
2322 | { | ||
2323 | return p->exit_signal == -1; | ||
2324 | } | ||
2325 | |||
2326 | /* | 2321 | /* |
2327 | * Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring | 2322 | * Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring |
2328 | * subscriptions and synchronises with wait4(). Also used in procfs. Also | 2323 | * subscriptions and synchronises with wait4(). Also used in procfs. Also |