lkml.org 
[lkml]   [2015]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH v2 3/3] signal: change complete_signal() to use for_each_thread()
change complete_signal() to use for_each_thread().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
---
kernel/signal.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/kernel/signal.c b/kernel/signal.c
index 7e9f6fa..8cdde5f 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -930,12 +930,11 @@ static void complete_signal(int sig, struct task_struct *p, int group)
signal->flags = SIGNAL_GROUP_EXIT;
signal->group_exit_code = sig;
signal->group_stop_count = 0;
- t = p;
- do {
+ for_each_thread(p, t) {
task_clear_jobctl_pending(t, JOBCTL_PENDING_MASK);
sigaddset(&t->pending.signal, SIGKILL);
signal_wake_up(t, 1);
- } while_each_thread(p, t);
+ }
return;
}
}
--
1.5.5.1


\
 
 \ /
  Last update: 2015-11-05 20:41    [W:0.089 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site