Fix linux32 siginfo si_signo value. Do not convert ksi_signo twice.

This commit is contained in:
njoly 2008-10-09 23:03:45 +00:00
parent a868d2c97b
commit 2c98237db9
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux32_machdep.c,v 1.18 2008/09/18 15:57:04 christos Exp $ */
/* $NetBSD: linux32_machdep.c,v 1.19 2008/10/09 23:03:45 njoly Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@ -31,7 +31,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux32_machdep.c,v 1.18 2008/09/18 15:57:04 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux32_machdep.c,v 1.19 2008/10/09 23:03:45 njoly Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -211,7 +211,7 @@ linux32_rt_sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
(void)memset(lsi, 0, sizeof(frame.sf_si));
lsi->lsi_errno = native_to_linux32_errno[ksi->ksi_errno];
lsi->lsi_code = ksi->ksi_code;
lsi->lsi_signo = native_to_linux32_signo[frame.sf_sig];
lsi->lsi_signo = frame.sf_sig;
switch (lsi->lsi_signo) {
case LINUX32_SIGILL:
case LINUX32_SIGFPE: