mirror of https://github.com/BOINC/boinc.git
We need to change the fixed 60 second interval to increasing intervals.
When glutInit fails it prints a line (~100 chars) to stdout. If it does this 60 times per hour, that's 6kB/hour. After ten hours it will overflow the blob for stderr. svn path=/trunk/boinc/; revision=4953
This commit is contained in:
parent
652e2e5c65
commit
9c1fb7a931
|
@ -194,6 +194,7 @@ void xwin_graphics_event_loop() {
|
|||
int one=1;
|
||||
static bool glut_inited = false;
|
||||
int restarted;
|
||||
int retry_interval_sec=32;
|
||||
|
||||
graphics_thread = pthread_self();
|
||||
|
||||
|
@ -215,7 +216,8 @@ try_again:
|
|||
} else {
|
||||
// here glutInit() must have failed and called exit().
|
||||
//
|
||||
sleep(60);
|
||||
retry_interval_sec *= 2;
|
||||
sleep(retry_interval_sec);
|
||||
goto try_again;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue