summaryrefslogtreecommitdiffstats
path: root/pym/portage_exec.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-03 22:32:46 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-03 22:32:46 +0000
commiteab078866e70b98616e1a78775fb3a847470210c (patch)
tree71329e96c8776d5c73e4fdef876f8ddb4f3d0b27 /pym/portage_exec.py
parentdc83f3e33f7526c1da92bf52f65c1d2456b2304d (diff)
downloadportage-eab078866e70b98616e1a78775fb3a847470210c.tar.gz
portage-eab078866e70b98616e1a78775fb3a847470210c.tar.bz2
portage-eab078866e70b98616e1a78775fb3a847470210c.zip
Make sure stderr is flushed since os._exit doesn't flush stdio buffers.
svn path=/main/trunk/; revision=5455
Diffstat (limited to 'pym/portage_exec.py')
-rw-r--r--pym/portage_exec.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage_exec.py b/pym/portage_exec.py
index 0bf3e345f..7557ad724 100644
--- a/pym/portage_exec.py
+++ b/pym/portage_exec.py
@@ -200,6 +200,7 @@ def spawn(mycommand, env={}, opt_name=None, fd_pipes=None, returnpid=False,
# propogate out of this function and cause exiting
# with anything other than os._exit()
sys.stderr.write("%s:\n %s\n" % (e, " ".join(mycommand)))
+ sys.stderr.flush()
os._exit(1)
# Add the pid to our local and the global pid lists.