summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-07-27 10:59:59 -0700
committerRuss Cox <rsc@golang.org>2009-07-27 10:59:59 -0700
commitc0797ee99b7cab39567c55d995d1a43d34032310 (patch)
treefb91891bbc41d5a70a08da1fbd70eea22951c3d0 /src
parentabeddc530c27d5edf2330e367730c6ffc5e07596 (diff)
downloadgolang-c0797ee99b7cab39567c55d995d1a43d34032310.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/pkg/runtime/darwin/thread.c2
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");
}
}