diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-02-19 15:33:54 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-02-19 15:33:54 +0000 |
commit | 6732d4d99fdc3d8410afe7e662f164a8375a936f (patch) | |
tree | 53a61202308f8b707a97f38483bbca1898a5035a /sys/arch/mvme88k | |
parent | ab07350c16c79d16babb36da629198c73a1497b5 (diff) |
When copyout() of the signal frame fails, sigexit() the process instead of
doing this by an hand-delivered SIGILL.
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r-- | sys/arch/mvme88k/mvme88k/machdep.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c index a27687d43ca..4f30213e7d2 100644 --- a/sys/arch/mvme88k/mvme88k/machdep.c +++ b/sys/arch/mvme88k/mvme88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.134 2004/02/11 20:41:08 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.135 2004/02/19 15:33:53 miod Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -916,13 +916,8 @@ sendsig(catcher, sig, mask, code, type, val) * Process has trashed its stack; give it an illegal * instruction to halt it in its tracks. */ - SIGACTION(p, SIGILL) = SIG_DFL; - sig = sigmask(SIGILL); - p->p_sigignore &= ~sig; - p->p_sigcatch &= ~sig; - p->p_sigmask &= ~sig; - psignal(p, SIGILL); - return; + sigexit(p, SIGILL); + /* NOTREACHED */ } /* * Build the argument list for the signal handler. |