[gc] mono_os_cond_timedwait returns -1 on timeout, not ETIMEDOUT
authorLudovic Henry <ludovic@xamarin.com>
Thu, 28 Jul 2016 22:06:54 +0000 (00:06 +0200)
committerLudovic Henry <ludovic@xamarin.com>
Thu, 28 Jul 2016 22:07:41 +0000 (00:07 +0200)
mono/metadata/gc.c

index a7230d05a3e97dc7e1f4e8ade74618ef0f828fe7..9bf14558becd5f69feebb879393fcb6cb411b37b 100644 (file)
@@ -513,7 +513,7 @@ mono_domain_finalize (MonoDomain *domain, guint32 timeout)
                                mono_coop_mutex_unlock (&req->mutex);
                                return FALSE;
                        }
-               } else if (res == ETIMEDOUT) {
+               } else if (res == -1) {
                        /* We leak the cond/mutex here */
                        mono_coop_mutex_unlock (&req->mutex);
                        return FALSE;