1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-12 19:38:57 +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:
if self._process.returncode is None:
log.warn("uBridge process {} is still running... killing it".format(self._process.pid))
self._process.kill()
try:
self._process.kill()
except ProcessLookupError:
pass
if self._stdout_file and os.access(self._stdout_file, os.W_OK):
try: