summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-02-19 16:54:28 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-02-19 16:54:28 +0000
commit821ed54711256a8737e7cb1d118b95a7526682e2 (patch)
treec9844ba1401b36b6bb3b730f4a167e3879c0619c /sys/compat
parent53523b94f850e183b09c883fbe1bb705c16a64e2 (diff)
spl sanity
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/common/kern_sig_43.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/compat/common/kern_sig_43.c b/sys/compat/common/kern_sig_43.c
index 453096d6aa9..b2791b72818 100644
--- a/sys/compat/common/kern_sig_43.c
+++ b/sys/compat/common/kern_sig_43.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sig_43.c,v 1.3 1996/04/18 21:21:34 niklas Exp $ */
+/* $OpenBSD: kern_sig_43.c,v 1.4 2001/02/19 16:54:27 art Exp $ */
/* $NetBSD: kern_sig_43.c,v 1.7 1996/03/14 19:31:47 christos Exp $ */
/*
@@ -77,11 +77,12 @@ compat_43_sys_sigblock(p, v, retval)
struct compat_43_sys_sigblock_args /* {
syscallarg(int) mask;
} */ *uap = v;
+ int s;
- (void) splhigh();
+ s = splhigh();
*retval = p->p_sigmask;
p->p_sigmask |= SCARG(uap, mask) &~ sigcantmask;
- (void) spl0();
+ splx(s);
return (0);
}
@@ -95,11 +96,12 @@ compat_43_sys_sigsetmask(p, v, retval)
struct compat_43_sys_sigsetmask_args /* {
syscallarg(int) mask;
} */ *uap = v;
+ int s;
- (void) splhigh();
+ s = splhigh();
*retval = p->p_sigmask;
p->p_sigmask = SCARG(uap, mask) &~ sigcantmask;
- (void) spl0();
+ splx(s);
return (0);
}