diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 9186f8c5d5f2..b47c94e7560b 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2061,6 +2061,11 @@ static inline int thread_group_empty(struct task_struct *p) | |||
2061 | #define delay_group_leader(p) \ | 2061 | #define delay_group_leader(p) \ |
2062 | (thread_group_leader(p) && !thread_group_empty(p)) | 2062 | (thread_group_leader(p) && !thread_group_empty(p)) |
2063 | 2063 | ||
2064 | static inline int task_detached(struct task_struct *p) | ||
2065 | { | ||
2066 | return p->exit_signal == -1; | ||
2067 | } | ||
2068 | |||
2064 | /* | 2069 | /* |
2065 | * Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring | 2070 | * Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring |
2066 | * subscriptions and synchronises with wait4(). Also used in procfs. Also | 2071 | * subscriptions and synchronises with wait4(). Also used in procfs. Also |