aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/signal.c')
-rw-r--r--kernel/signal.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 1c8814481a11..f93efec14ff5 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -238,14 +238,19 @@ void flush_sigqueue(struct sigpending *queue)
238/* 238/*
239 * Flush all pending signals for a task. 239 * Flush all pending signals for a task.
240 */ 240 */
241void __flush_signals(struct task_struct *t)
242{
243 clear_tsk_thread_flag(t, TIF_SIGPENDING);
244 flush_sigqueue(&t->pending);
245 flush_sigqueue(&t->signal->shared_pending);
246}
247
241void flush_signals(struct task_struct *t) 248void flush_signals(struct task_struct *t)
242{ 249{
243 unsigned long flags; 250 unsigned long flags;
244 251
245 spin_lock_irqsave(&t->sighand->siglock, flags); 252 spin_lock_irqsave(&t->sighand->siglock, flags);
246 clear_tsk_thread_flag(t, TIF_SIGPENDING); 253 __flush_signals(t);
247 flush_sigqueue(&t->pending);
248 flush_sigqueue(&t->signal->shared_pending);
249 spin_unlock_irqrestore(&t->sighand->siglock, flags); 254 spin_unlock_irqrestore(&t->sighand->siglock, flags);
250} 255}
251 256