*** empty log message ***

svn path=/trunk/boinc/; revision=12080
This commit is contained in:
Charlie Fenton 2007-02-14 13:47:23 +00:00
parent 85f87cea2a
commit 7f6706cc34
2 changed files with 17 additions and 0 deletions

View File

@ -1680,3 +1680,11 @@ David 13 Feb 2007
update_stats.C
tools/
upgrade
Charlie 14 Feb 2007
- MAC: If relaunching AppStats due to an error, close any open
file descriptors (we communicate with AppStats via a bidirectional
pipe.)
lib/
procinfo_mac.C

View File

@ -87,6 +87,15 @@ int procinfo_setup(vector<PROCINFO>& pi) {
if (fd[0] == 0) {
// Launch AppStats helper application with a bidirectional pipe
RELAUNCH:
// If we are relaunching, close our open file decriptors
if (fd[0] != 0)
close(fd[0]);
fd[0] = 0;
if (fd[1] != 0)
close(fd[1]);
fd[1] = 0;
if (failed_retries > 4) // Give up after failures on 5 consecutive calls
return ERR_EXEC; // of procinfo_setup()