diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-08-06 12:10:29 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-08-06 12:10:29 +0000 |
commit | d1b0415a5f6e0687db6b4e0f32ffd6d3f1d0fb2e (patch) | |
tree | ef07ce1fc1682c7a82a608b8f858b132e3d0eb25 /sys/arch/alpha | |
parent | b03d0711c9c1ef5378f8520681fc1c2d3ab5aa54 (diff) |
If a process has trashed its stack, use sigexit() instead of psignal() to
terminate it with prejudice, as done in native sendsig().
Plus you get a memory leak in COMPAT_HPUX on m68k fixed for free.
review art@ test martin@
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/netbsd_machdep.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/arch/alpha/alpha/netbsd_machdep.c b/sys/arch/alpha/alpha/netbsd_machdep.c index 99f1b47b1d7..bbbf4a5773a 100644 --- a/sys/arch/alpha/alpha/netbsd_machdep.c +++ b/sys/arch/alpha/alpha/netbsd_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_machdep.c,v 1.10 2003/08/10 00:03:21 miod Exp $ */ +/* $OpenBSD: netbsd_machdep.c,v 1.11 2005/08/06 12:10:25 miod Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -182,13 +182,8 @@ netbsd_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 */ } #ifdef DEBUG if (sigdebug & SDB_FOLLOW) |