From 8396e06fc04da733ff382ad781b5555d22bce236 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 12 Oct 2007 06:22:58 +0000 Subject: [PATCH] Mac V5 GFX API: Fix old zombie process bug (I hope). getPathToThisApp() should call pclose(), not fclose(). svn path=/trunk/boinc/; revision=13840 --- api/mac_icon.C | 2 +- checkin_notes | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/api/mac_icon.C b/api/mac_icon.C index 005ba0163a..e455fb511c 100644 --- a/api/mac_icon.C +++ b/api/mac_icon.C @@ -160,7 +160,7 @@ void getPathToThisApp(char* pathBuf, size_t bufSize) { return; PersistentFGets(pathBuf, bufSize, f); // Skip over line of column headings PersistentFGets(pathBuf, bufSize, f); // Get the UNIX command which ran us - fclose(f); + pclose(f); c = strstr(pathBuf, " -"); if (c) diff --git a/checkin_notes b/checkin_notes index 56f653c7b3..19098c1aa5 100644 --- a/checkin_notes +++ b/checkin_notes @@ -9465,3 +9465,10 @@ Charlie 11 Oct 2007 screensaver.cpp doc/ sandbox.php + +Charlie 11 Oct 2007 + - Mac V5 GFX API: Fix old zombie process bug (I hope). getPathToThisApp() + should call pclose(), not fclose(). + + api/ + mac_icon.C