Commit c0445b35 authored by Thomas Gleixner's avatar Thomas Gleixner

signals: Do not wakeup self

Signals which are delivered by current to current can do without
waking up current :)
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent cc3ec6de
...@@ -519,6 +519,9 @@ void signal_wake_up(struct task_struct *t, int resume) ...@@ -519,6 +519,9 @@ void signal_wake_up(struct task_struct *t, int resume)
set_tsk_thread_flag(t, TIF_SIGPENDING); 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 * 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 * case. We don't check t->state here because there is a race with it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment