summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-rw-r--r--pym/_emerge/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index eefa68921..d25358faa 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -1489,7 +1489,8 @@ class AsynchronousTask(SlotObject):
def _wait_hook(self):
"""
- Call this method before returning from wait. This hook is
+ Call this method after the task completes, just before returning
+ the returncode from wait() or poll(). This hook is
used to trigger exit listeners when the returncode first
becomes available.
"""
@@ -1574,6 +1575,7 @@ class SubProcess(AsynchronousTask):
if retval == (0, 0):
return None
self._set_returncode(retval)
+ self._wait_hook()
return self.returncode
def cancel(self):