Mac V5 GFX API: Fix old zombie process bug (I hope). getPathToThisApp() should call pclose(), not fclose().

svn path=/trunk/boinc/; revision=13840
This commit is contained in:
Charlie Fenton 2007-10-12 06:22:58 +00:00
parent f32e42e1bb
commit 8396e06fc0
2 changed files with 8 additions and 1 deletions

View File

@ -160,7 +160,7 @@ void getPathToThisApp(char* pathBuf, size_t bufSize) {
return; return;
PersistentFGets(pathBuf, bufSize, f); // Skip over line of column headings PersistentFGets(pathBuf, bufSize, f); // Skip over line of column headings
PersistentFGets(pathBuf, bufSize, f); // Get the UNIX command which ran us PersistentFGets(pathBuf, bufSize, f); // Get the UNIX command which ran us
fclose(f); pclose(f);
c = strstr(pathBuf, " -"); c = strstr(pathBuf, " -");
if (c) if (c)

View File

@ -9465,3 +9465,10 @@ Charlie 11 Oct 2007
screensaver.cpp screensaver.cpp
doc/ doc/
sandbox.php 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