28 lines
788 B
Diff
28 lines
788 B
Diff
|
From: Thomas Gleixner <tglx@linutronix.de>
|
||
|
Date: Fri, 3 Jul 2009 08:44:44 -0500
|
||
|
Subject: signals: Do not wakeup self
|
||
|
|
||
|
Signals which are delivered by current to current can do without
|
||
|
waking up current :)
|
||
|
|
||
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
||
|
|
||
|
---
|
||
|
kernel/signal.c | 3 +++
|
||
|
1 file changed, 3 insertions(+)
|
||
|
|
||
|
Index: linux-3.2/kernel/signal.c
|
||
|
===================================================================
|
||
|
--- linux-3.2.orig/kernel/signal.c
|
||
|
+++ linux-3.2/kernel/signal.c
|
||
|
@@ -682,6 +682,9 @@ void signal_wake_up(struct task_struct *
|
||
|
|
||
|
set_tsk_thread_flag(t, TIF_SIGPENDING);
|
||
|
|
||
|
+ if (unlikely(t == current))
|
||
|
+ return;
|
||
|
+
|
||
|
/*
|
||
|
* For SIGKILL, we want to wake it up in the stopped/traced/killable
|
||
|
* case. We don't check t->state here because there is a race with it
|