summaryrefslogtreecommitdiff
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2009-12-27 04:59:44 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2009-12-27 04:59:44 +0000
commita6643d7fc4c89fedb5766db6b63ee5dff08803ef (patch)
tree4e9cf5cccc5d71466dd997fbf84f8e6ce7008a7d /sys/kern/kern_synch.c
parent9d1a017765e2c07cc6d3848e17925f7459db7f85 (diff)
Correct previous commit: match the errno return by thrsleep() in
the already-timed-out case to be the same (EWOULDBLOCK) as when it times out after sleeping
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r--sys/kern/kern_synch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 565c4f35b95..7e7a19f96cf 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_synch.c,v 1.92 2009/11/27 19:45:53 guenther Exp $ */
+/* $OpenBSD: kern_synch.c,v 1.93 2009/12/27 04:59:43 guenther Exp $ */
/* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */
/*
@@ -430,7 +430,7 @@ sys_thrsleep(struct proc *p, void *v, register_t *revtal)
/* already passed: still do the unlock */
if (lock)
copyout(&unlocked, lock, sizeof(unlocked));
- return (ETIMEDOUT);
+ return (EWOULDBLOCK);
}
timespecsub(&ats, &now, &ats);