summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index ef16f477c..7960872d5 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -1914,6 +1914,8 @@ class SubProcess(AsynchronousTask):
return self.returncode
if self.pid is None:
return self.returncode
+ if self.registered:
+ return self.returncode
try:
retval = os.waitpid(self.pid, os.WNOHANG)
@@ -7993,8 +7995,6 @@ class SequentialTaskQueue(SlotObject):
state_changed = False
for task in list(running_tasks):
- if hasattr(task, "registered") and task.registered:
- continue
if task.poll() is not None:
state_changed = True