From 3ff5e727e278066650f5604794109b7ad1e8ce8c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 27 Jul 2009 10:59:59 -0700 Subject: [PATCH] fix bug in CL 30057: missed if+continue in one place. R=gri DELTA=2 (2 added, 0 deleted, 0 changed) OCL=32214 CL=32223 --- src/pkg/runtime/darwin/thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pkg/runtime/darwin/thread.c b/src/pkg/runtime/darwin/thread.c index 2a6116c103..c394ab490e 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"); } } -- 2.48.1