|
@@ -414,21 +414,16 @@ void flush_sigqueue(struct sigpending *queue)
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
- * Flush all pending signals for a task.
|
|
|
+ * Flush all pending signals for this kthread.
|
|
|
*/
|
|
|
-void __flush_signals(struct task_struct *t)
|
|
|
-{
|
|
|
- clear_tsk_thread_flag(t, TIF_SIGPENDING);
|
|
|
- flush_sigqueue(&t->pending);
|
|
|
- flush_sigqueue(&t->signal->shared_pending);
|
|
|
-}
|
|
|
-
|
|
|
void flush_signals(struct task_struct *t)
|
|
|
{
|
|
|
unsigned long flags;
|
|
|
|
|
|
spin_lock_irqsave(&t->sighand->siglock, flags);
|
|
|
- __flush_signals(t);
|
|
|
+ clear_tsk_thread_flag(t, TIF_SIGPENDING);
|
|
|
+ flush_sigqueue(&t->pending);
|
|
|
+ flush_sigqueue(&t->signal->shared_pending);
|
|
|
spin_unlock_irqrestore(&t->sighand->siglock, flags);
|
|
|
}
|
|
|
|