summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/AsynchronousTask.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/_emerge/AsynchronousTask.py')
-rw-r--r--pym/_emerge/AsynchronousTask.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/AsynchronousTask.py b/pym/_emerge/AsynchronousTask.py
index de0080042..2b654ec00 100644
--- a/pym/_emerge/AsynchronousTask.py
+++ b/pym/_emerge/AsynchronousTask.py
@@ -1,6 +1,7 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+from portage import os
from _emerge.SlotObject import SlotObject
class AsynchronousTask(SlotObject):
"""
@@ -23,7 +24,8 @@ class AsynchronousTask(SlotObject):
self._start()
def _start(self):
- raise NotImplementedError(self)
+ self.returncode = os.EX_OK
+ self.wait()
def isAlive(self):
return self.returncode is None