mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=12080
This commit is contained in:
parent
85f87cea2a
commit
7f6706cc34
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue