diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-30 19:57:35 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-30 19:57:35 +0000 |
commit | dd8ff961ca7ea62c7f1fd7c63fffc6477116de67 (patch) | |
tree | 644451e4859c095d7e4a0894d8889b997dd418dc | |
parent | 5efde0d4c7dbdd7f581189e4ab5e80e5eb02f32e (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.
-rw-r--r-- | sys/kern/sysv_sem.c | 4 |
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)); |