From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 13EB11381F3 for ; Sun, 7 Jul 2013 02:17:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4AFAE08BB; Sun, 7 Jul 2013 02:17:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 68C42E08BB for ; Sun, 7 Jul 2013 02:17:37 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 578CB33E769 for ; Sun, 7 Jul 2013 02:17:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 99990E468F for ; Sun, 7 Jul 2013 02:17:33 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1373163416.1aae13adbc8648d3763e1570ddeffb2536c5d826.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/util/_async/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/util/_async/ForkProcess.py X-VCS-Directories: pym/portage/util/_async/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 1aae13adbc8648d3763e1570ddeffb2536c5d826 X-VCS-Branch: master Date: Sun, 7 Jul 2013 02:17:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4f345f4e-c417-413c-99ba-35bec4a93348 X-Archives-Hash: 09444f9cab3b99eb8bc59b1d976596c5 commit: 1aae13adbc8648d3763e1570ddeffb2536c5d826 Author: Zac Medico gentoo org> AuthorDate: Sun Jul 7 02:16:56 2013 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Jul 7 02:16:56 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=1aae13ad ForkProcess: flush stderr for traceback --- pym/portage/util/_async/ForkProcess.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/portage/util/_async/ForkProcess.py b/pym/portage/util/_async/ForkProcess.py index be856d0..25f72d3 100644 --- a/pym/portage/util/_async/ForkProcess.py +++ b/pym/portage/util/_async/ForkProcess.py @@ -1,7 +1,8 @@ -# Copyright 2012 Gentoo Foundation +# Copyright 2012-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import signal +import sys import traceback import portage @@ -46,6 +47,8 @@ class ForkProcess(SpawnProcess): raise except: traceback.print_exc() + # os._exit() skips stderr flush! + sys.stderr.flush() finally: os._exit(rval)