Commit 5e5ec104 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] x86_64: Don't print exceptions for ltrace

Don't printk exceptions for ltrace
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 916fa469
...@@ -211,9 +211,7 @@ int unhandled_signal(struct task_struct *tsk, int sig) ...@@ -211,9 +211,7 @@ int unhandled_signal(struct task_struct *tsk, int sig)
{ {
if (tsk->pid == 1) if (tsk->pid == 1)
return 1; return 1;
/* Warn for strace, but not for gdb */ if (tsk->ptrace & PT_PTRACED)
if (!test_ti_thread_flag(tsk->thread_info, TIF_SYSCALL_TRACE) &&
(tsk->ptrace & PT_PTRACED))
return 0; return 0;
return (tsk->sighand->action[sig-1].sa.sa_handler == SIG_IGN) || return (tsk->sighand->action[sig-1].sa.sa_handler == SIG_IGN) ||
(tsk->sighand->action[sig-1].sa.sa_handler == SIG_DFL); (tsk->sighand->action[sig-1].sa.sa_handler == SIG_DFL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment