/[linux-patches]/genpatches-2.6/tags/2.6.14-5/1034_3_trace-auto-reap.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.14-5/1034_3_trace-auto-reap.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 226 - (show annotations) (download)
Fri Dec 2 12:14:55 2005 UTC (12 years, 6 months ago) by dsd
File size: 917 byte(s)
2.6.14-5 release
1 From nobody Mon Sep 17 00:00:00 2001
2 Subject: [PATCH] Don't auto-reap traced children
3 From: Oleg Nesterov <oleg@tv-sign.ru>
4 Date: 1131632538 +0300
5
6 If a task is being traced we never auto-reap it even if it might look
7 like its parent doesn't care. The tracer obviously _does_ care.
8
9 Signed-off-by: Linus Torvalds <torvalds@osdl.org>
10 Signed-off-by: Chris Wright <chrisw@osdl.org>
11 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 ---
13 kernel/signal.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- linux-2.6.14.2.orig/kernel/signal.c
17 +++ linux-2.6.14.2/kernel/signal.c
18 @@ -1524,7 +1524,7 @@ void do_notify_parent(struct task_struct
19
20 psig = tsk->parent->sighand;
21 spin_lock_irqsave(&psig->siglock, flags);
22 - if (sig == SIGCHLD &&
23 + if (!tsk->ptrace && sig == SIGCHLD &&
24 (psig->action[SIGCHLD-1].sa.sa_handler == SIG_IGN ||
25 (psig->action[SIGCHLD-1].sa.sa_flags & SA_NOCLDWAIT))) {
26 /*

  ViewVC Help
Powered by ViewVC 1.1.20