mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 16:54:51 +02:00
Use SIGTERM instead of SIGUSR1 to stop vpcs.
This commit is contained in:
parent
3b05d89837
commit
6c0918312c
@ -251,7 +251,6 @@ class VPCSDevice(object):
|
||||
:returns: VPCS command line (string)
|
||||
"""
|
||||
|
||||
print(self._build_command())
|
||||
return " ".join(self._build_command())
|
||||
|
||||
def delete(self):
|
||||
@ -319,7 +318,7 @@ class VPCSDevice(object):
|
||||
# stop the VPCS process
|
||||
if self.is_running():
|
||||
log.info("stopping VPCS instance {} PID={}".format(self._id, self._process.pid))
|
||||
self._process.send_signal(signal.SIGUSR1) # send SIGUSR1 will stop VPCS
|
||||
self._process.send_signal(signal.SIGTERM) # send SIGTERM will stop VPCS
|
||||
self._process.wait()
|
||||
|
||||
self._process = None
|
||||
|
Loading…
Reference in New Issue
Block a user