1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-03-12 15:06:06 +00:00

Some wording changes.

This commit is contained in:
Jeremy 2015-04-29 15:10:42 -06:00
parent 995881980b
commit 6fc7d014c3
6 changed files with 18 additions and 13 deletions

View File

@ -267,10 +267,12 @@ class Router(BaseVM):
@asyncio.coroutine
def _termination_callback(self, returncode):
"""
Called when the process is killed
Called when the process has stopped.
:param returncode: Process returncode
"""
log.info("Dynamips hypervisor process has stopped, return code: %d", returncode)
self.status = "stopped"
@asyncio.coroutine

View File

@ -483,11 +483,12 @@ class IOUVM(BaseVM):
def _termination_callback(self, returncode):
"""
Called when the process is killed
Called when the process has stopped.
:param returncode: Process returncode
"""
log.info("IOU process crash return code: %d", returncode)
log.info("IOU process has stopped, return code: %d", returncode)
self._terminate_process_iou()
self._terminate_process_iouyap()
self._ioucon_thread_stop_event.set()

View File

@ -65,7 +65,7 @@ class Project:
self._used_tcp_ports = set()
self._used_udp_ports = set()
# List of clients listen for notifications
# List of clients listening for notifications
self._listeners = set()
if path is None:
@ -409,11 +409,12 @@ class Project:
def emit(self, action, event):
"""
Send an event to all the client listens for notifications
Send an event to all the client listening for notifications
:param action: Action happened
:param event: Event sended to the client
:param action: Action name
:param event: Event to send
"""
for listener in self._listeners:
listener.put_nowait((action, event, ))

View File

@ -620,12 +620,13 @@ class QemuVM(BaseVM):
def _termination_callback(self, returncode):
"""
Called when the process is killed
Called when the process has stopped.
:param returncode: Process returncode
"""
if self.started:
log.info("Process Qemu is dead. Return code: %d", returncode)
log.info("QEMU process has stopped, return code: %d", returncode)
self.status = "stopped"
self._process = None

View File

@ -240,12 +240,13 @@ class VPCSVM(BaseVM):
def _termination_callback(self, returncode):
"""
Called when the process is killed
Called when the process has stopped.
:param returncode: Process returncode
"""
if self._started:
log.info("Process VPCS is dead. Return code: %d", returncode)
log.info("VPCS process has stopped, return code: %d", returncode)
self._started = False
self.status = "stopped"
self._process = None

View File

@ -17,7 +17,6 @@
import asyncio
import shutil
import sys
@ -91,6 +90,6 @@ def _check_process(process, termination_callback):
def monitor_process(process, termination_callback):
"""Call termination_callback when process die"""
"""Call termination_callback when a process dies"""
asyncio.async(_check_process(process, termination_callback))