From 174da53469886a2d42e55326377d59e453b696c2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 14 Feb 2012 15:51:22 -0800 Subject: SubProcess._wait: add debug code for bug #403697 --- pym/_emerge/SubProcess.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3-1-g7c22