git: e81badcfc010 - main - libthr cond_wait_user(): do not loop forever on clock error
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Nov 2026 00:22:08 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=e81badcfc010268d4935f4b4d28ebdbc0faebe0f
commit e81badcfc010268d4935f4b4d28ebdbc0faebe0f
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-11-06 00:46:06 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-11-10 00:21:18 +0000
libthr cond_wait_user(): do not loop forever on clock error
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D61253
---
lib/libthr/thread/thr_cond.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/libthr/thread/thr_cond.c b/lib/libthr/thread/thr_cond.c
index c2ce9565e208..32efd4a14f1a 100644
--- a/lib/libthr/thread/thr_cond.c
+++ b/lib/libthr/thread/thr_cond.c
@@ -347,7 +347,7 @@ cond_wait_user(struct pthread_cond *cvp, struct pthread_mutex *mp,
_pthread_exit(PTHREAD_CANCELED);
else /* this should not happen */
return (error2);
- } else if (error == ETIMEDOUT) {
+ } else if (error != 0 && error != EINTR) {
sq = _sleepq_lookup(cvp);
cvp->__has_user_waiters =
_sleepq_remove(sq, curthread);