Should fix ProcessLookupError exceptions.

This commit is contained in:
Jeremy committed 2015-03-11 10:53:09 -06:00
1 parent 1610067eee
commit 223f3ee705
5 files changed
+21 -16

No files matched your search

+2 -2
View File
@@ -245,9 +245,9 @@ class VPCSVM(BaseVM):
try:
yield from asyncio.wait_for(self._process.wait(), timeout=3)
except asyncio.TimeoutError:
self._process.kill()
if self._process.returncode is None:
log.warn("VPCS process {} is still running".format(self._process.pid))
log.warn("VPCS process {} is still running... killing it".format(self._process.pid))
self._process.kill()
self._process = None
self._started = False