From a52ca4fa3dd3e98a6c9568bf36142cebffd1cdd9 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Tue, 20 Apr 2010 11:11:08 +0000 Subject: [PATCH] Flushing stdout & stderr before calling Popen to avoid messages display desinchronisation. --- bootstrap/buildCoriolis.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap/buildCoriolis.py b/bootstrap/buildCoriolis.py index 6859d7e7..487588aa 100755 --- a/bootstrap/buildCoriolis.py +++ b/bootstrap/buildCoriolis.py @@ -134,6 +134,8 @@ class ProjectBuilder: def _execute ( self, command, error ): + sys.stdout.flush () + sys.stderr.flush () child = subprocess.Popen ( command, env=self._environment, stdout=None ) (pid,status) = os.waitpid ( child.pid, 0 ) status >>= 8 @@ -179,6 +181,7 @@ class ProjectBuilder: if self._doBuild: print "Make arguments:", self._makeArguments + sys.stdout.flush () command = ["make", "DESTDIR=%s" % self._installDir] command += self._makeArguments self._execute ( command, "Build failed" )