]> err.no Git - linux-2.6/blobdiff - kernel/signal.c
attach_pid() with struct pid parameter
[linux-2.6] / kernel / signal.c
index 23ae6d62fc4134aac7e13061ad9d0b3058275ed8..2ac3a668d9dd6adf8fb943ab8a0894f6b486e3fb 100644 (file)
@@ -209,6 +209,16 @@ void flush_signals(struct task_struct *t)
        spin_unlock_irqrestore(&t->sighand->siglock, flags);
 }
 
+void ignore_signals(struct task_struct *t)
+{
+       int i;
+
+       for (i = 0; i < _NSIG; ++i)
+               t->sighand->action[i].sa.sa_handler = SIG_IGN;
+
+       flush_signals(t);
+}
+
 /*
  * Flush all handlers for a task.
  */