mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 00:08:11 +00:00
Fix exception from send_signal() on Windows.
This commit is contained in:
parent
747814f083
commit
20294e284c
@ -313,7 +313,10 @@ class VPCSVM(BaseNode):
|
||||
|
||||
log.info("Stopping VPCS instance {} PID={}".format(self.name, self._process.pid))
|
||||
if sys.platform.startswith("win32"):
|
||||
self._process.send_signal(signal.CTRL_BREAK_EVENT)
|
||||
try:
|
||||
self._process.send_signal(signal.CTRL_BREAK_EVENT)
|
||||
except OSError:
|
||||
pass
|
||||
else:
|
||||
try:
|
||||
self._process.terminate()
|
||||
|
Loading…
Reference in New Issue
Block a user