git: c334757cb920 - stable/15 - libthr: Remove deadcode in join_common
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 01 Nov 2026 22:08:44 UTC
The branch stable/15 has been updated by aokblast:
URL: https://cgit.FreeBSD.org/src/commit/?id=c334757cb920349e0f75a561427744c627f7cc77
commit c334757cb920349e0f75a561427744c627f7cc77
Author: ShengYi Hung <aokblast@FreeBSD.org>
AuthorDate: 2026-10-13 19:41:00 +0000
Commit: ShengYi Hung <aokblast@FreeBSD.org>
CommitDate: 2026-11-01 22:08:30 +0000
libthr: Remove deadcode in join_common
The while loop previous can only be break when ret == ETIMEDOUT. They
never produce EBUSY. Remove the deadcode here.
Reviewed by: kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D60711
(cherry picked from commit a0e152973613e0d0d55257f4e1f614509b7ec4c9)
---
lib/libthr/thread/thr_join.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/libthr/thread/thr_join.c b/lib/libthr/thread/thr_join.c
index 33eb18638169..16137d482632 100644
--- a/lib/libthr/thread/thr_join.c
+++ b/lib/libthr/thread/thr_join.c
@@ -189,7 +189,7 @@ join_common(pthread_t pthread, void **thread_return,
_thr_cancel_leave(curthread, 0);
THR_CLEANUP_POP(curthread, 0);
- if (ret == ETIMEDOUT || ret == EBUSY) {
+ if (ret == ETIMEDOUT) {
backout_join(pthread, curthread);
} else {
ret = 0;