Fixed bug in ibcs2 signal translation.

This commit is contained in:
Søren Schmidt 1994-10-11 20:42:01 +00:00
parent 99ec0d5b44
commit bc576ac45e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3512

View File

@ -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 <sys/param.h>
@ -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