From c0797ee99b7cab39567c55d995d1a43d34032310 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 27 Jul 2009 10:59:59 -0700 Subject: 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(+) (limited to 'src') 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"); } } -- cgit v1.2.3