1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-01 04:38:12 +00:00

Fix a race condition when killing ubridge

Fix #931
This commit is contained in:
Julien Duponchelle 2017-03-13 18:21:43 +01:00
parent 84a6ed7684
commit 233a5fbed4
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -201,7 +201,10 @@ class Hypervisor(UBridgeHypervisor):
except asyncio.TimeoutError: except asyncio.TimeoutError:
if self._process.returncode is None: if self._process.returncode is None:
log.warn("uBridge process {} is still running... killing it".format(self._process.pid)) log.warn("uBridge process {} is still running... killing it".format(self._process.pid))
try:
self._process.kill() self._process.kill()
except ProcessLookupError:
pass
if self._stdout_file and os.access(self._stdout_file, os.W_OK): if self._stdout_file and os.access(self._stdout_file, os.W_OK):
try: try: