mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Catch a startup error due to the usage of some antivirus
This commit is contained in:
parent
11c7f35ea2
commit
b7e1a56056
@ -163,7 +163,7 @@ def pid_lock(path):
|
|||||||
pid = int(f.read())
|
pid = int(f.read())
|
||||||
try:
|
try:
|
||||||
os.kill(pid, 0) # If the proces is not running kill return an error
|
os.kill(pid, 0) # If the proces is not running kill return an error
|
||||||
except OSError:
|
except (OSError, SystemError):
|
||||||
pid = None
|
pid = None
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
log.critical("Can't open pid file %s: %s", pid, str(e))
|
log.critical("Can't open pid file %s: %s", pid, str(e))
|
||||||
|
Loading…
Reference in New Issue
Block a user