Mac client: fix parent died test in benchmark_time_to_stop()

svn path=/trunk/boinc/; revision=18054
This commit is contained in:
Charlie Fenton 2009-05-08 02:01:25 +00:00
parent aab93f8477
commit d823142bf5
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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;
}