diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-03 08:44:44 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-03-02 11:52:03 -0600 |
commit | 8542351376dcec0b0d1dd35985c0bc145a09832e (patch) | |
tree | febd386eec7a2fb8dd26c3b979e39d947e6e3663 /kernel/signal.c | |
parent | 8527b15d557bdbabbb4ba365c640b41239e79d4c (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index d8b0b21e71e4..8ad4755277fe 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 |