Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
darwin: handle KERN_ABORTED in uv_sem_wait()
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny authored and bnoordhuis committed Aug 22, 2012
1 parent 29eb460 commit 8969df6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/unix/thread.c
Expand Up @@ -187,7 +187,13 @@ void uv_sem_post(uv_sem_t* sem) {


void uv_sem_wait(uv_sem_t* sem) {
if (semaphore_wait(*sem))
int r;

do
r = semaphore_wait(*sem);
while (r == KERN_ABORTED);

if (r != KERN_SUCCESS)
abort();
}

Expand Down

0 comments on commit 8969df6

Please sign in to comment.