summaryrefslogtreecommitdiff
path: root/kernel/signal.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-03 08:44:44 -0500
committerClark Williams <williams@redhat.com>2011-12-28 16:25:21 -0600
commit8d3a2d2ec088ef097052763a9b41e2e8b26163d6 (patch)
tree1bb611c645c66c2dcf965f227f2d01c60c2a064a /kernel/signal.c
parent5bdfc1992a8c55c57945695315b8f13107956c16 (diff)
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>
Diffstat (limited to 'kernel/signal.c')
-rw-r--r--kernel/signal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index d197b3be9270..fffa57f58b70 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -682,6 +682,9 @@ void signal_wake_up(struct task_struct *t, int resume)
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