* [patch 02/23] [PATCH] Dont auto-reap traced children
@ 2005-11-22 21:06 Chris Wright
0 siblings, 0 replies; only message in thread
From: Chris Wright @ 2005-11-22 21:06 UTC (permalink / raw)
To: linux-kernel, stable
Cc: Justin Forbes, Zwane Mwaikambo, Theodore Ts'o, Randy Dunlap,
Dave Jones, Chuck Wolber, torvalds, akpm, alan, Oleg Nesterov
[-- Attachment #1: ptrace-auto-reap-fix.patch --]
[-- Type: text/plain, Size: 866 bytes --]
-stable review patch. If anyone has any objections, please let us know.
------------------
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>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
kernel/signal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.14.2.orig/kernel/signal.c
+++ linux-2.6.14.2/kernel/signal.c
@@ -1524,7 +1524,7 @@ void do_notify_parent(struct task_struct
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))) {
/*
--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-22 21:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-22 21:06 [patch 02/23] [PATCH] Dont auto-reap traced children Chris Wright
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.