summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2009-05-16 23:00:46 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2009-05-16 23:00:46 +0000
commitd81f623012df52422f305675f1010bdb3c583210 (patch)
tree35afcf08061528ae899aaff7e03ff3b6a796ceb3 /sys/kern
parent1d9e41a203eff49585d54c20d118d7e19e2938db (diff)
0 -> PR_NOWAIT for clarity.
ok blambert@
Diffstat (limited to 'sys/kern')
-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 65183bde21a..c085f2bccc4 100644
--- a/sys/kern/sysv_sem.c
+++ b/sys/kern/sysv_sem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysv_sem.c,v 1.38 2009/04/03 04:22:49 guenther Exp $ */
+/* $OpenBSD: sysv_sem.c,v 1.39 2009/05/16 23:00:45 thib Exp $ */
/* $NetBSD: sysv_sem.c,v 1.26 1996/02/09 19:00:25 christos Exp $ */
/*
@@ -91,7 +91,7 @@ semu_alloc(struct process *pr)
* with un_proc == pr has not been allocated in the meantime.
*/
semutot++;
- if ((suptr = pool_get(&semu_pool, 0)) == NULL) {
+ if ((suptr = pool_get(&semu_pool, PR_NOWAIT)) == NULL) {
sutmp = pool_get(&semu_pool, PR_WAITOK);
SLIST_FOREACH(suptr, &semu_list, un_next) {
if (suptr->un_proc == pr) {