From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RxSA3-0005qa-7Z for garchives@archives.gentoo.org; Tue, 14 Feb 2012 23:51:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EE092E0BA0; Tue, 14 Feb 2012 23:51:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C1512E0BA0 for ; Tue, 14 Feb 2012 23:51:38 +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 2F2271B4002 for ; Tue, 14 Feb 2012 23:51:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id EAB6EE5400 for ; Tue, 14 Feb 2012 23:51:36 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1329263482.174da53469886a2d42e55326377d59e453b696c2.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/SubProcess.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 174da53469886a2d42e55326377d59e453b696c2 X-VCS-Branch: master Date: Tue, 14 Feb 2012 23:51:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 1af4e12e-1726-40c3-86e7-3c8bc0d75faa X-Archives-Hash: 78bf832eb4045514ae58156c1bf4aa1b commit: 174da53469886a2d42e55326377d59e453b696c2 Author: Zac Medico gentoo org> AuthorDate: Tue Feb 14 23:51:22 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Feb 14 23:51:22 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D174da534 SubProcess._wait: add debug code for bug #403697 --- pym/_emerge/SubProcess.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/pym/_emerge/SubProcess.py b/pym/_emerge/SubProcess.py index 17a3e8f..926efa7 100644 --- a/pym/_emerge/SubProcess.py +++ b/pym/_emerge/SubProcess.py @@ -81,6 +81,12 @@ class SubProcess(AbstractPollTask): if self.returncode is not None: return self.returncode =20 + if not isinstance(self.pid, int): + # Get debug info for bug #403697. + raise AssertionError( + "%s: pid is non-integer: %s" % + (self.__class__.__name__, repr(self.pid))) + try: # With waitpid and WNOHANG, only check the # first element of the tuple since the second