mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 03:08:14 +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())
|
||||
try:
|
||||
os.kill(pid, 0) # If the proces is not running kill return an error
|
||||
except OSError:
|
||||
except (OSError, SystemError):
|
||||
pid = None
|
||||
except OSError as e:
|
||||
log.critical("Can't open pid file %s: %s", pid, str(e))
|
||||
|
Loading…
Reference in New Issue
Block a user