aboutsummaryrefslogtreecommitdiff
path: root/kernel/signal.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-03 08:44:44 -0500
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2012-10-26 14:41:03 -0400
commit9ff58e986f1ceb40da3385d3caf57b556c53dd54 (patch)
tree90b5c9b70580f0387adc0ade136a9f9bf055d6df /kernel/signal.c
parent666e64e0c25b29d4ca4faf06e05156f13bff5bc4 (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 f966ff72cd79..fa0b0cdbd705 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -637,6 +637,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