From: Andi Kleen Date: Fri, 19 Aug 2005 04:56:04 +0000 (+0200) Subject: [PATCH] x86_64: Don't print exceptions for ltrace X-Git-Tag: v2.6.13-rc7~59^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5e5ec10499a00bf4ce3440d5a9e1a5a176c5a640;p=linux-2.6-omap-h63xx.git [PATCH] x86_64: Don't print exceptions for ltrace Don't printk exceptions for ltrace Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/mm/fault.c b/arch/x86_64/mm/fault.c index 493819e543a..ca914c3bd49 100644 --- a/arch/x86_64/mm/fault.c +++ b/arch/x86_64/mm/fault.c @@ -211,9 +211,7 @@ int unhandled_signal(struct task_struct *tsk, int sig) { if (tsk->pid == 1) return 1; - /* Warn for strace, but not for gdb */ - if (!test_ti_thread_flag(tsk->thread_info, TIF_SYSCALL_TRACE) && - (tsk->ptrace & PT_PTRACED)) + if (tsk->ptrace & PT_PTRACED) return 0; return (tsk->sighand->action[sig-1].sa.sa_handler == SIG_IGN) || (tsk->sighand->action[sig-1].sa.sa_handler == SIG_DFL);