Make sure stderr is flushed since os._exit doesn't flush stdio buffers.
authorZac Medico <zmedico@gentoo.org>
Wed, 3 Jan 2007 22:32:46 +0000 (22:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 3 Jan 2007 22:32:46 +0000 (22:32 -0000)
svn path=/main/trunk/; revision=5455

pym/portage_exec.py

index 0bf3e345f2972acd027a28dc0806bec67ee065be..7557ad7244710899973ed52cfe18d1e91e0e183f 100644 (file)
@@ -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.