]> granicus.if.org Git - gc/commit
Workaround sem_wait failure in pthread_create on Haiku
authorIvan Maidanski <ivmai@mail.ru>
Tue, 6 Mar 2018 22:24:05 +0000 (01:24 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 6 Mar 2018 22:24:05 +0000 (01:24 +0300)
commit8a455421b8765ebce3176afa7b35a5fa82209ae2
tree3ac520a946533903f11274566df1d7becdf2a469
parent42ff9266117a0821a68717a8fc0ce69267524bb3
Workaround sem_wait failure in pthread_create on Haiku

Issue #97 (bdwgc).

sem_wait() fails because of some bug in Haiku OS (as of hrev51798).

* pthread_support.c [GC_HAIKU_THREADS] (WRAP_FUNC(pthread_create)):
If errno is EACCES then just retry sem_wait instead of ABORT.
pthread_support.c