MergeProcess: flush stderr for traceback
authorZac Medico <zmedico@gentoo.org>
Sun, 7 Jul 2013 03:22:50 +0000 (20:22 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 7 Jul 2013 03:22:50 +0000 (20:22 -0700)
pym/portage/dbapi/_MergeProcess.py

index 6c4104101f7499a705534a33f265cd8f8098c95e..0c207762e3bad4135a4cfbf24e02684166bd240c 100644 (file)
@@ -233,6 +233,8 @@ class MergeProcess(ForkProcess):
                                raise
                        except:
                                traceback.print_exc()
+                               # os._exit() skips stderr flush!
+                               sys.stderr.flush()
                        finally:
                                os._exit(rval)