summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/AbstractEbuildProcess.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-12-30 17:01:59 -0800
committerZac Medico <zmedico@gentoo.org>2012-12-30 17:04:27 -0800
commita3100be184ba1cac2f672f0a1cadcf01690c6d3f (patch)
tree53fa53cd147e24c7230daa71ddd7821fd6803108 /pym/_emerge/AbstractEbuildProcess.py
parent7ebb2f54877edb28621c33e380f8777b1b1dc201 (diff)
downloadportage-a3100be184ba1cac2f672f0a1cadcf01690c6d3f.tar.gz
portage-a3100be184ba1cac2f672f0a1cadcf01690c6d3f.tar.bz2
portage-a3100be184ba1cac2f672f0a1cadcf01690c6d3f.zip
AsynchronousTask: add _async_wait method
For cases where _start returns synchronously, this method is a convenient way to trigger an asynchronous call to self.wait() (in order to notify exit listeners), avoiding excessive event loop recursion (or stack overflow) that synchronous calling of exit listeners can cause.
Diffstat (limited to 'pym/_emerge/AbstractEbuildProcess.py')
-rw-r--r--pym/_emerge/AbstractEbuildProcess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/AbstractEbuildProcess.py b/pym/_emerge/AbstractEbuildProcess.py
index 597208f52..6d12cd999 100644
--- a/pym/_emerge/AbstractEbuildProcess.py
+++ b/pym/_emerge/AbstractEbuildProcess.py
@@ -56,7 +56,7 @@ class AbstractEbuildProcess(SpawnProcess):
(self.phase, self.settings['PORTAGE_BUILDDIR'])
self._eerror(textwrap.wrap(msg, 72))
self._set_returncode((self.pid, 1 << 8))
- self.wait()
+ self._async_wait()
return
if self.background: