]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
signals: consolidate checks for whether or not to ignore a signal
authorPavel Emelyanov <xemul@openvz.org>
Wed, 30 Apr 2008 07:52:39 +0000 (00:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:34 +0000 (08:29 -0700)
commit93585eeaf3d42d608cd7232e7420c93fb676bba1
tree7c87ab85480af514a055563f03aec6ef7b1e3f87
parent06fffb1267c9d986687b69d74a46ee332a50575e
signals: consolidate checks for whether or not to ignore a signal

Both sig_ignored() and do_sigaction() check for signr to be explicitly or
implicitly ignored.  Introduce a helper for them.

This patch is aimed to help handling signals by pid namespace's init, and was
derived from one of Oleg's patches
https://lists.linux-foundation.org/pipermail/containers/2007-December/009308.html
so, if he doesn't mind, he should be considered as an author.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/signal.c