From 6732d4d99fdc3d8410afe7e662f164a8375a936f Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 19 Feb 2004 15:33:54 +0000 Subject: When copyout() of the signal frame fails, sigexit() the process instead of doing this by an hand-delivered SIGILL. --- sys/arch/mvme88k/mvme88k/machdep.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sys/arch/mvme88k') 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. -- cgit v1.2.3