diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-05 14:02:13 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-05 14:02:13 +0000 |
commit | eb296c82de1fc38a81323928b2ce482b627b43c8 (patch) | |
tree | ed3ad33b0f6514591816923af2d899481ab06b9c | |
parent | 2081148547ec71a72c198d059c369e2d57ae43bf (diff) | |
download | portage-eb296c82de1fc38a81323928b2ce482b627b43c8.tar.gz portage-eb296c82de1fc38a81323928b2ce482b627b43c8.tar.bz2 portage-eb296c82de1fc38a81323928b2ce482b627b43c8.zip |
Call _wait_hook() from poll() if the wait call occurs there.
svn path=/main/trunk/; revision=10946
-rw-r--r-- | pym/_emerge/__init__.py | 4 |
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): |