From 78d6bee137f786fb35ce6c5f6c8725b3ad363b53 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 30 May 2013 12:03:16 +1000 Subject: [PATCH] Inverted sem_init logic. --- cgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 8451f692..fab27810 100644 --- a/cgminer.c +++ b/cgminer.c @@ -7374,7 +7374,7 @@ int main(int argc, char *argv[]) // before device detection if (!opt_scrypt) { - if (!sem_init(&usb_resource_sem, 0, 0)) + if (sem_init(&usb_resource_sem, 0, 0)) quit(1, "Failed to sem_init usb_resource_sem"); usbres_thr_id = 1; thr = &control_thr[usbres_thr_id];