diff options
Diffstat (limited to 'tools/purify/common.py')
-rw-r--r-- | tools/purify/common.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/purify/common.py b/tools/purify/common.py index 25b552f..9bd55ae 100644 --- a/tools/purify/common.py +++ b/tools/purify/common.py @@ -128,8 +128,9 @@ def RunSubprocess(proc, timeout=0, detach=False): elif not detach: for line in p.stdout.readlines(): _print_line(line, False) - logging.info("flushing stdout") - p.stdout.flush() + if sys.platform != 'darwin': # stdout flush fails on Mac + logging.info("flushing stdout") + p.stdout.flush() logging.info("collecting result code") result = p.poll() @@ -331,6 +332,3 @@ class Rational(object): except: logging.warning("unable to delete file %s: %s" % (file, sys.exc_info()[0])) - - - |