diff options
author | Oleg Nesterov <oleg@redhat.com> | 2011-06-22 17:08:18 -0400 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2011-06-27 14:30:08 -0400 |
commit | 53c8f9f199b239668e6b1a907735ee323a0d1ccd (patch) | |
tree | 785afb9c72a2df27cd6802cf311df18711c59b76 /include/linux/sched.h | |
parent | 06d984737bac0545fe20bb5447ee488b95adb531 (diff) |
make do_notify_parent() return bool
- change do_notify_parent() to return a boolean, true if the task should
be reaped because its parent ignores SIGCHLD.
- update the only caller which checks the returned value, exit_notify().
This temporary uglifies exit_notify() even more, will be cleanuped by
the next change.
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 87f7ca7ed6f6..0df7231d9ee0 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2145,7 +2145,7 @@ static inline int dequeue_signal_lock(struct task_struct *tsk, sigset_t *mask, s | |||
2145 | spin_unlock_irqrestore(&tsk->sighand->siglock, flags); | 2145 | spin_unlock_irqrestore(&tsk->sighand->siglock, flags); |
2146 | 2146 | ||
2147 | return ret; | 2147 | return ret; |
2148 | } | 2148 | } |
2149 | 2149 | ||
2150 | extern void block_all_signals(int (*notifier)(void *priv), void *priv, | 2150 | extern void block_all_signals(int (*notifier)(void *priv), void *priv, |
2151 | sigset_t *mask); | 2151 | sigset_t *mask); |
@@ -2160,7 +2160,7 @@ extern int kill_pid_info_as_uid(int, struct siginfo *, struct pid *, uid_t, uid_ | |||
2160 | extern int kill_pgrp(struct pid *pid, int sig, int priv); | 2160 | extern int kill_pgrp(struct pid *pid, int sig, int priv); |
2161 | extern int kill_pid(struct pid *pid, int sig, int priv); | 2161 | extern int kill_pid(struct pid *pid, int sig, int priv); |
2162 | extern int kill_proc_info(int, struct siginfo *, pid_t); | 2162 | extern int kill_proc_info(int, struct siginfo *, pid_t); |
2163 | extern int do_notify_parent(struct task_struct *, int); | 2163 | extern bool do_notify_parent(struct task_struct *, int); |
2164 | extern void __wake_up_parent(struct task_struct *p, struct task_struct *parent); | 2164 | extern void __wake_up_parent(struct task_struct *p, struct task_struct *parent); |
2165 | extern void force_sig(int, struct task_struct *); | 2165 | extern void force_sig(int, struct task_struct *); |
2166 | extern int send_sig(int, struct task_struct *, int); | 2166 | extern int send_sig(int, struct task_struct *, int); |