mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Fix calls to static methods in server.py
This commit is contained in:
parent
ab4d964d69
commit
ff64f86289
@ -201,9 +201,9 @@ class Server:
|
|||||||
loop.add_signal_handler(getattr(signal, signal_name), callback)
|
loop.add_signal_handler(getattr(signal, signal_name), callback)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _kill_ghosts(self):
|
def _kill_ghosts():
|
||||||
"""
|
"""
|
||||||
Kill process from previous GNS3 session
|
Kill processes from previous GNS3 session
|
||||||
"""
|
"""
|
||||||
detect_process = ["vpcs", "ubridge", "dynamips"]
|
detect_process = ["vpcs", "ubridge", "dynamips"]
|
||||||
for proc in psutil.process_iter():
|
for proc in psutil.process_iter():
|
||||||
@ -216,7 +216,7 @@ class Server:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _pid_lock(self, path):
|
def _pid_lock(path):
|
||||||
"""
|
"""
|
||||||
Write the file in a file on the system.
|
Write the file in a file on the system.
|
||||||
Check if the process is not already running.
|
Check if the process is not already running.
|
||||||
|
Loading…
Reference in New Issue
Block a user