From: Russ Cox Date: Mon, 27 Jul 2009 17:59:59 +0000 (-0700) Subject: fix bug in CL 30057: missed if+continue in one place. X-Git-Tag: weekly.2009-11-06~1071 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3ff5e727e278066650f5604794109b7ad1e8ce8c;p=gostls13.git 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 --- 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"); } }