patch-2.1.38 linux/arch/i386/kernel/signal.c
Next file: linux/arch/i386/lib/semaphore.S
Previous file: linux/arch/i386/kernel/setup.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Thu May 15 12:24:24 1997
- Orig file:
v2.1.37/linux/arch/i386/kernel/signal.c
- Orig date:
Tue May 13 22:41:01 1997
diff -u --recursive --new-file v2.1.37/linux/arch/i386/kernel/signal.c linux/arch/i386/kernel/signal.c
@@ -392,10 +392,12 @@
case SIGQUIT: case SIGILL: case SIGTRAP:
case SIGABRT: case SIGFPE: case SIGSEGV:
+ lock_kernel();
if (current->binfmt && current->binfmt->core_dump) {
if (current->binfmt->core_dump(signr, regs))
signr |= 0x80;
}
+ unlock_kernel();
/* fall through */
default:
spin_lock_irq(¤t->sigmask_lock);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov