From 23b4af5507d433faadd76eac09447743fdb6c478 Mon Sep 17 00:00:00 2001 From: "Eric J. Korpela" Date: Mon, 15 May 2006 17:25:59 +0000 Subject: [PATCH] Fixed stupid bux in the pthreads() thread creation check that always caused it to report success. svn path=/trunk/boinc/; revision=10132 --- api/boinc_api.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/boinc_api.C b/api/boinc_api.C index 4387d80b79..5b5e0ae989 100644 --- a/api/boinc_api.C +++ b/api/boinc_api.C @@ -859,8 +859,9 @@ int set_worker_timer() { if (retval) { fprintf(stderr, "set_worker_timer(): pthread_create(): %d", retval); timer_thread_created=0; + } else { + timer_thread_created=1; } - timer_thread_created=1; struct sigaction sa; itimerval value;