From b7e1a56056e6d074da5a688c67b52d9a6fdfec84 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 3 Apr 2017 16:24:32 +0200 Subject: [PATCH] Catch a startup error due to the usage of some antivirus --- gns3server/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/run.py b/gns3server/run.py index ccfb1a9d..edcc6cb6 100644 --- a/gns3server/run.py +++ b/gns3server/run.py @@ -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))