VPCS reload

This commit is contained in:
Julien Duponchelle committed 2015-01-22 10:55:11 +01:00
1 parent 1a43ff118c
commit 8d3ea60404
18 files changed
+69 -22

No files matched your search

+9 -1
View File
@@ -252,6 +252,15 @@ class VPCSVM(BaseVM):
self._process = None
self._started = False
@asyncio.coroutine
def reload(self):
"""
Reload the VPCS process. (Stop / Start)
"""
yield from self.stop()
yield from self.start()
def _kill_process(self):
"""Kill the process if running"""
@@ -271,7 +280,6 @@ class VPCSVM(BaseVM):
Reads the standard output of the VPCS process.
Only use when the process has been stopped or has crashed.
"""
# TODO: should be async
output = ""
if self._vpcs_stdout_file:
try: