diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2005-11-10 17:22:18 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-10 09:57:19 -0800 |
commit | 7ed0175a462c4c30f6df6fac1cccac058f997739 (patch) | |
tree | 30e894294260f8595565b620a7bb0b9cf8d1d69c /kernel/signal.c | |
parent | 759979ab17512a061c3a3e870f091af27ccdcbfb (diff) | |
download | op-kernel-dev-7ed0175a462c4c30f6df6fac1cccac058f997739.zip op-kernel-dev-7ed0175a462c4c30f6df6fac1cccac058f997739.tar.gz |
[PATCH] Don't auto-reap traced children
If a task is being traced we never auto-reap it even if it might look
like its parent doesn't care. The tracer obviously _does_ care.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/signal.c')
-rw-r--r-- | kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index 1bf3c39..80789a5 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -1499,7 +1499,7 @@ void do_notify_parent(struct task_struct *tsk, int sig) psig = tsk->parent->sighand; spin_lock_irqsave(&psig->siglock, flags); - if (sig == SIGCHLD && + if (!tsk->ptrace && sig == SIGCHLD && (psig->action[SIGCHLD-1].sa.sa_handler == SIG_IGN || (psig->action[SIGCHLD-1].sa.sa_flags & SA_NOCLDWAIT))) { /* |