summaryrefslogtreecommitdiffstats
path: root/tools/purify/common.py
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-27 01:03:41 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-27 01:03:41 +0000
commit6a487e114e33e7faad0c30e2cc981c35e3c81835 (patch)
treedbdc91dc20061ebfe27a1ddfa3fe1329b9f3c55b /tools/purify/common.py
parentb367d9a55236a54285a12727c43d0f779a16c23f (diff)
downloadchromium_src-6a487e114e33e7faad0c30e2cc981c35e3c81835.zip
chromium_src-6a487e114e33e7faad0c30e2cc981c35e3c81835.tar.gz
chromium_src-6a487e114e33e7faad0c30e2cc981c35e3c81835.tar.bz2
Submitting nirnimesh's changes.
LGTMed by Elliot Glaysher. See http://codereview.chromium.org/27079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10552 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/purify/common.py')
-rw-r--r--tools/purify/common.py8
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]))
-
-
-