From bc576ac45ef719fe84ebfad7c56532e70290aef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= Date: Tue, 11 Oct 1994 20:42:01 +0000 Subject: [PATCH] Fixed bug in ibcs2 signal translation. --- sys/kern/kern_exit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 2b3688beedcc..1b91a2416ba8 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_exit.c 8.7 (Berkeley) 2/12/94 - * $Id: kern_exit.c,v 1.8 1994/10/02 17:35:14 phk Exp $ + * $Id: kern_exit.c,v 1.10 1994/10/09 21:53:49 sos Exp $ */ #include @@ -359,10 +359,10 @@ loop: nfound++; #if defined(COMPAT_43) || defined(COMPAT_IBCS2) if (q->p_sysent->sv_sigtbl) { - if (p->p_xstat > q->p_sysent->sv_sigsize) - sig = q->p_sysent->sv_sigsize + 1; + if ((p->p_xstat & 0xff) < q->p_sysent->sv_sigsize) + sig = q->p_sysent->sv_sigtbl[p->p_xstat & 0xff]; else - sig = q->p_sysent->sv_sigtbl[p->p_xstat]; + sig = q->p_sysent->sv_sigsize + 1; } else sig = p->p_xstat; #endif