Mac V5 GFX API: In setMacPList(), if resource already exists, don't call getPathToThisApp() because it leaves a zombie process.

svn path=/trunk/boinc/; revision=13828
This commit is contained in:
Charlie Fenton 2007-10-11 01:41:33 +00:00
parent 14b3bc63f3
commit 3d4f4c1780
1 changed files with 6 additions and 0 deletions

View File

@ -183,6 +183,12 @@ int setMacPList() {
char path[1024], resolvedPath[1024];
StringPtr rsrcName = (StringPtr)"\pApplication PList";
// If resource already exists, don't call getPathToThisApp()
// which leaves a zombie process.
if (GetResource('plst', 0)) {
return 0;
}
getPathToThisApp(path, sizeof(path));
if (path[0] == 0)
return -1; // Should never happen