|
Boost-Commit : |
From: troy_at_[hidden]
Date: 2008-06-30 10:09:12
Author: troy
Date: 2008-06-30 10:09:12 EDT (Mon, 30 Jun 2008)
New Revision: 46908
URL: http://svn.boost.org/trac/boost/changeset/46908
Log:
use communicate(), don't hang on windows.
Text files modified:
branches/CMake/release/tools/build/CMake/passthru.py.in | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
Modified: branches/CMake/release/tools/build/CMake/passthru.py.in
==============================================================================
--- branches/CMake/release/tools/build/CMake/passthru.py.in (original)
+++ branches/CMake/release/tools/build/CMake/passthru.py.in 2008-06-30 10:09:12 EDT (Mon, 30 Jun 2008)
@@ -33,14 +33,18 @@
subproc = None
returncode = None
ex = None
+stdout = None
+stderr = None
try:
subproc = Popen(argv, stdout=PIPE, stderr=PIPE)
- returncode = subproc.wait()
+ (stdout, stderr) = subproc.communicate()
except EnvironmentError, e:
ex = e
-print subproc.stdout.read()
-print subproc.stderr.read()
+if stdout:
+ print stdout
+if stderr:
+ print stderr
if not ex:
# possibly flip the return code
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk