[hurd,commited] htl: Fix checking for mutex not being recoverable

Samuel Thibault samuel.thibault@ens-lyon.org
Sun Mar 8 00:05:34 GMT 2026


pthread_mutex_unlock sets __owner_id to NOTRECOVERABLE_ID

Reported-by: Brent Baccala <cosine@freesoft.org> 's Claude assistant
---
 sysdeps/mach/hurd/htl/pt-mutex.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/mach/hurd/htl/pt-mutex.h b/sysdeps/mach/hurd/htl/pt-mutex.h
index d26f527968..270a415a0c 100644
--- a/sysdeps/mach/hurd/htl/pt-mutex.h
+++ b/sysdeps/mach/hurd/htl/pt-mutex.h
@@ -45,7 +45,7 @@
   ret = cb (mtxp->__lock, ##__VA_ARGS__);   \
   if (ret == 0 || ret == EOWNERDEAD)   \
     {   \
-      if (mtxp->__owner_id == ENOTRECOVERABLE)   \
+      if (mtxp->__owner_id == NOTRECOVERABLE_ID)   \
         ret = ENOTRECOVERABLE;   \
       else   \
         {   \
-- 
2.51.0



More information about the Libc-alpha mailing list