summaryrefslogtreecommitdiff
path: root/sys/arch/sh
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2006-11-08 10:53:59 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2006-11-08 10:53:59 +0000
commit8dbd5eee6d994ef1291b9c7ecbace9c5eb853857 (patch)
treef47626f99b4b95540089288c86d7ab594e2b2d3d /sys/arch/sh
parent2e391371ff227ca82ce5b8ecefb6a4026314863b (diff)
fix sigmask handling bug that caused SIGCHLD to be almost always
masked. DOH! miod@
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/sh/sh_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sh/sh/sh_machdep.c b/sys/arch/sh/sh/sh_machdep.c
index bc40ee71b52..fa35082eb07 100644
--- a/sys/arch/sh/sh/sh_machdep.c
+++ b/sys/arch/sh/sh/sh_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sh_machdep.c,v 1.4 2006/10/07 20:52:40 miod Exp $ */
+/* $OpenBSD: sh_machdep.c,v 1.5 2006/11/08 10:53:58 otto Exp $ */
/* $NetBSD: sh3_machdep.c,v 1.59 2006/03/04 01:13:36 uwe Exp $ */
/*-
@@ -481,7 +481,7 @@ sendsig(sig_t catcher, int sig, int mask, u_long code, int type,
frame.sf_uc.sc_onstack = onstack;
frame.sf_uc.sc_expevt = tf->tf_expevt;
/* frame.sf_uc.sc_err = 0; */
- frame.sf_uc.sc_mask = p->p_sigmask;
+ frame.sf_uc.sc_mask = mask;
/* XXX tf_macl, tf_mach not saved */
if (copyout(&frame, fp, sizeof(frame)) != 0) {