From 3d4f4c1780d44354c2de96e1db611ff2bc39ca7f Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 11 Oct 2007 01:41:33 +0000 Subject: [PATCH] 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 --- api/mac_icon.C | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/mac_icon.C b/api/mac_icon.C index 84f49f0e0f..005ba0163a 100644 --- a/api/mac_icon.C +++ b/api/mac_icon.C @@ -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