Browse Source

Linux splash window shouldn't block waiting for pipe activity

rdb 10 years ago
parent
commit
d74f028198
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/plugin/p3dX11SplashWindow.cxx

+ 2 - 2
direct/src/plugin/p3dX11SplashWindow.cxx

@@ -681,11 +681,11 @@ subprocess_run() {
       }
     }
 
-    do {
+    while (input_ready) {
       // Empty the pipe of whatever is in it.
       receive_command();
       input_ready = _pipe_read.has_gdata();
-    } while (input_ready);
+    }
 
     // Sleep a good amount in order not to lock up the system.
     struct timespec req;