28 lines
837 B
Diff
28 lines
837 B
Diff
From d593d9a98592b53916884a81482f8102d7d591cf Mon Sep 17 00:00:00 2001
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
|
Date: Fri, 3 Jul 2009 08:44:44 -0500
|
|
Subject: [020/256] 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>
|
|
---
|
|
kernel/signal.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/kernel/signal.c b/kernel/signal.c
|
|
index 6b5071f..099746c 100644
|
|
--- a/kernel/signal.c
|
|
+++ b/kernel/signal.c
|
|
@@ -683,6 +683,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
|