aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2011-06-22 17:09:09 -0400
committerOleg Nesterov <oleg@redhat.com>2011-06-27 14:30:09 -0400
commit8677347378044ab564470bced2275520efb3670d (patch)
tree61baa72f24bb12eadd6956fb0abeb7eabda46b88 /include/linux/sched.h
parent9843a1e977977986d0a4c1000f2229b032572534 (diff)
make do_notify_parent() __must_check, update the callers
Change other callers of do_notify_parent() to check the value it returns, this makes the subsequent task_detached() unnecessary. Mark do_notify_parent() as __must_check. Use thread_group_leader() instead of !task_detached() to check if we need to notify the real parent in wait_task_zombie(). Remove the stale comment in release_task(). "just for sanity" is no longer true, we have to set EXIT_DEAD to avoid the races with do_wait(). Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 0df7231d9ee0..0cb4f097f76c 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2160,7 +2160,7 @@ extern int kill_pid_info_as_uid(int, struct siginfo *, struct pid *, uid_t, uid_
2160extern int kill_pgrp(struct pid *pid, int sig, int priv); 2160extern int kill_pgrp(struct pid *pid, int sig, int priv);
2161extern int kill_pid(struct pid *pid, int sig, int priv); 2161extern int kill_pid(struct pid *pid, int sig, int priv);
2162extern int kill_proc_info(int, struct siginfo *, pid_t); 2162extern int kill_proc_info(int, struct siginfo *, pid_t);
2163extern bool do_notify_parent(struct task_struct *, int); 2163extern __must_check bool do_notify_parent(struct task_struct *, int);
2164extern void __wake_up_parent(struct task_struct *p, struct task_struct *parent); 2164extern void __wake_up_parent(struct task_struct *p, struct task_struct *parent);
2165extern void force_sig(int, struct task_struct *); 2165extern void force_sig(int, struct task_struct *);
2166extern int send_sig(int, struct task_struct *, int); 2166extern int send_sig(int, struct task_struct *, int);