Loading...
pthreads.subproj/pthread_cond.c Libc-167 Libc-186
--- Libc/Libc-167/pthreads.subproj/pthread_cond.c
+++ Libc/Libc-186/pthreads.subproj/pthread_cond.c
@@ -295,7 +295,8 @@
     if ((res = pthread_mutex_lock(mutex)) != ESUCCESS) {
         return (res);
     }
-    if (kern_res == KERN_SUCCESS) {
+    /* KERN_ABORTED can be treated as a spurious wakeup */
+    if ((kern_res == KERN_SUCCESS) || (kern_res == KERN_ABORTED)) {
         return (ESUCCESS);
     } else if (kern_res == KERN_OPERATION_TIMED_OUT) {
         return (ETIMEDOUT);