From eab078866e70b98616e1a78775fb3a847470210c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 3 Jan 2007 22:32:46 +0000 Subject: Make sure stderr is flushed since os._exit doesn't flush stdio buffers. svn path=/main/trunk/; revision=5455 --- pym/portage_exec.py | 1 + 1 file changed, 1 insertion(+) (limited to 'pym') 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. -- cgit v1.2.3-1-g7c22