mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-29 20:43:48 +02: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))
|
log.info("Stopping VPCS instance {} PID={}".format(self.name, self._process.pid))
|
||||||
if sys.platform.startswith("win32"):
|
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:
|
else:
|
||||||
try:
|
try:
|
||||||
self._process.terminate()
|
self._process.terminate()
|
||||||
|
Loading…
Reference in New Issue
Block a user