diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-03 08:44:44 -0500 |
|---|---|---|
| committer | Clark Williams <williams@redhat.com> | 2012-01-16 13:00:05 -0600 |
| commit | 9d3112c89fb88183079205401c8d21483f0823b7 (patch) | |
| tree | 5316bff62626c55416730874c8c49a4231951cad /kernel | |
| parent | e7c97c68c711c92d0c4f566c593d50ee840ce523 (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')
| -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 |
