From d74f02819861183d163bc7580d87a62b12efa3d7 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 10 Aug 2015 04:00:41 +0200 Subject: [PATCH] Linux splash window shouldn't block waiting for pipe activity --- direct/src/plugin/p3dX11SplashWindow.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/plugin/p3dX11SplashWindow.cxx b/direct/src/plugin/p3dX11SplashWindow.cxx index 513458521e..76c0175a18 100644 --- a/direct/src/plugin/p3dX11SplashWindow.cxx +++ b/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;