diff options
-rw-r--r-- | src/pkg/runtime/darwin/thread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/runtime/darwin/thread.c b/src/pkg/runtime/darwin/thread.c index 2a6116c10..c394ab490 100644 --- a/src/pkg/runtime/darwin/thread.c +++ b/src/pkg/runtime/darwin/thread.c @@ -409,6 +409,8 @@ mach_semdestroy(uint32 sem) m.tx.semaphore.type = 0; while((r = machcall(&m.tx.h, sizeof m, 0)) != 0){ + if(r == KERN_ABORTED) // interrupted + continue; macherror(r, "semaphore_destroy"); } } |