patch-2.1.120 linux/arch/i386/kernel/signal.c
Next file: linux/arch/i386/kernel/smp.c
Previous file: linux/arch/i386/kernel/setup.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Sep 1 11:57:14 1998
- Orig file:
v2.1.119/linux/arch/i386/kernel/signal.c
- Orig date:
Wed Aug 26 11:37:33 1998
diff -u --recursive --new-file v2.1.119/linux/arch/i386/kernel/signal.c linux/arch/i386/kernel/signal.c
@@ -22,6 +22,17 @@
#include <asm/ucontext.h>
#include <asm/uaccess.h>
+void checksignals(void)
+{
+ sigset_t *blocked = ¤t->blocked;
+ unsigned long mask = blocked->sig[0] | sigmask(SIGKILL) | sigmask(SIGINT) | sigmask(SIGQUIT);
+ mask &= blocked->sig[1];
+ if (~mask) {
+ printk("Bad signal mask\n");
+ *(int *) 0 = 0;
+ }
+}
+
#define DEBUG_SIG 0
#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov