summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-12-30 19:57:35 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-12-30 19:57:35 +0000
commitdd8ff961ca7ea62c7f1fd7c63fffc6477116de67 (patch)
tree644451e4859c095d7e4a0894d8889b997dd418dc /sys
parent5efde0d4c7dbdd7f581189e4ab5e80e5eb02f32e (diff)
Use PLOCK for tsleep priority instead of the (rather bogus) PZERO - 4.
PZERO - 4 == 18 which makes it equivalent to PRIBIO; not what we want. Discussed with art@ some time ago.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/sysv_sem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c
index 9d97ff7fde2..f72d77ccc2f 100644
--- a/sys/kern/sysv_sem.c
+++ b/sys/kern/sysv_sem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysv_sem.c,v 1.14 2002/12/30 18:41:27 millert Exp $ */
+/* $OpenBSD: sysv_sem.c,v 1.15 2002/12/30 19:57:34 millert Exp $ */
/* $NetBSD: sysv_sem.c,v 1.26 1996/02/09 19:00:25 christos Exp $ */
/*
@@ -653,7 +653,7 @@ sys_semop(struct proc *p, void *v, register_t *retval)
semptr->semncnt++;
DPRINTF(("semop: good night!\n"));
- error = tsleep((caddr_t)&sema[semid], (PZERO - 4) | PCATCH,
+ error = tsleep((caddr_t)&sema[semid], PLOCK | PCATCH,
"semwait", 0);
DPRINTF(("semop: good morning (error=%d)!\n", error));