mirror of https://github.com/BOINC/boinc.git
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:
parent
14b3bc63f3
commit
3d4f4c1780
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue