projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
759979a
)
[PATCH] Don't auto-reap traced children
author
Oleg Nesterov
<oleg@tv-sign.ru>
Thu, 10 Nov 2005 14:22:18 +0000
(17:22 +0300)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Thu, 10 Nov 2005 17:57:19 +0000
(09:57 -0800)
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>
kernel/signal.c
patch
|
blob
|
history
diff --git
a/kernel/signal.c
b/kernel/signal.c
index
1bf3c39
..
80789a5
100644
(file)
--- 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))) {
/*