mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-17 23:08:18 +00:00
IOU integration.
Improvements on module management. File upload support. Config file for the server.
This commit is contained in:
@ -211,11 +211,16 @@ class Hypervisor(DynamipsHypervisor):
|
||||
if self.is_running():
|
||||
DynamipsHypervisor.stop(self)
|
||||
log.info("stopping Dynamips PID={}".format(self._process.pid))
|
||||
# give some time for the hypervisor to properly stop.
|
||||
# time to delete UNIX NIOs for instance.
|
||||
time.sleep(0.01)
|
||||
self._process.kill()
|
||||
self._process.wait()
|
||||
try:
|
||||
# give some time for the hypervisor to properly stop.
|
||||
# time to delete UNIX NIOs for instance.
|
||||
time.sleep(0.01)
|
||||
self._process.terminate()
|
||||
self._process.wait(1)
|
||||
except subprocess.TimeoutExpired:
|
||||
self._process.kill()
|
||||
if self._process.poll() == None:
|
||||
log.warn("Dynamips process {} is still running".format(self._process.pid))
|
||||
|
||||
def read_stdout(self):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user