From d823142bf556b89dc3cc3a8342c1d2af806d0dac Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 8 May 2009 02:01:25 +0000 Subject: [PATCH] Mac client: fix parent died test in benchmark_time_to_stop() svn path=/trunk/boinc/; revision=18054 --- checkin_notes | 3 +++ client/cs_benchmark.cpp | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index 74745f80d8..ea1108560f 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4399,7 +4399,10 @@ Rytis 7 May 2009 Charlie 7 May 2009 - Mac: Remove -lresolv from XCode linker flags for client, manager, boinccmd and screensaver which linked with libresolv.dylib for res_init() call. + - Mac client: fix parent died test in benchmark_time_to_stop(). + client/ + cs_benchmark.cpp mac_build/ boinc.xcodeproj/ project.pbxproj diff --git a/client/cs_benchmark.cpp b/client/cs_benchmark.cpp index dc0390608e..327d83c8de 100644 --- a/client/cs_benchmark.cpp +++ b/client/cs_benchmark.cpp @@ -148,14 +148,14 @@ void benchmark_wait_to_start(int which) { } bool benchmark_time_to_stop(int which) { - if (boinc_file_exists(file_names[which])) { - return false; - } #ifndef _WIN32 if (getppid() == 1) { exit(0); } #endif + if (boinc_file_exists(file_names[which])) { + return false; + } return true; }