From 9c1fb7a931c3df113a19e5601be818826c3173b8 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Tue, 28 Dec 2004 09:32:29 +0000 Subject: [PATCH] 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 --- api/x_opengl.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/x_opengl.C b/api/x_opengl.C index bb29e82be9..50a1ade5c3 100644 --- a/api/x_opengl.C +++ b/api/x_opengl.C @@ -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 {