From: Zac Medico Date: Tue, 14 Feb 2012 23:51:22 +0000 (-0800) Subject: SubProcess._wait: add debug code for bug #403697 X-Git-Tag: v2.2.0_alpha87~35 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=174da53469886a2d42e55326377d59e453b696c2;p=portage.git SubProcess._wait: add debug code for bug #403697 --- diff --git a/pym/_emerge/SubProcess.py b/pym/_emerge/SubProcess.py index 17a3e8f20..926efa72b 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 + 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