projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11937db
)
SubProcess._wait: add debug code for bug #403697
author
Zac Medico
<zmedico@gentoo.org>
Tue, 14 Feb 2012 23:51:22 +0000
(15:51 -0800)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 14 Feb 2012 23:51:22 +0000
(15:51 -0800)
pym/_emerge/SubProcess.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/SubProcess.py
b/pym/_emerge/SubProcess.py
index 17a3e8f20cdcddd5d340377b7b37f14dba12245b..926efa72b2dcdc132eabba3367b3b3eeb2126e99 100644
(file)
--- 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