From dd8ff961ca7ea62c7f1fd7c63fffc6477116de67 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 30 Dec 2002 19:57:35 +0000 Subject: 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. --- sys/kern/sysv_sem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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)); -- cgit v1.2.3