aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/signal.c')
-rw-r--r--kernel/signal.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 1d7f4463c32d..54e9ef673e68 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -395,23 +395,10 @@ void __exit_signal(struct task_struct *tsk)
395 clear_tsk_thread_flag(tsk,TIF_SIGPENDING); 395 clear_tsk_thread_flag(tsk,TIF_SIGPENDING);
396 flush_sigqueue(&tsk->pending); 396 flush_sigqueue(&tsk->pending);
397 if (sig) { 397 if (sig) {
398 /* 398 __cleanup_signal(sig);
399 * We are cleaning up the signal_struct here.
400 */
401 exit_thread_group_keys(sig);
402 kmem_cache_free(signal_cachep, sig);
403 } 399 }
404} 400}
405 401
406void exit_signal(struct task_struct *tsk)
407{
408 atomic_dec(&tsk->signal->live);
409
410 write_lock_irq(&tasklist_lock);
411 __exit_signal(tsk);
412 write_unlock_irq(&tasklist_lock);
413}
414
415/* 402/*
416 * Flush all handlers for a task. 403 * Flush all handlers for a task.
417 */ 404 */