catch access denied to pid file

fix #1091
This commit is contained in:
Randall Leeds 2016-12-22 15:36:05 -08:00
parent 22de9c5693
commit d18a9cd12f

View File

@ -75,6 +75,8 @@ class Pidfile(object):
os.kill(wpid, 0)
return wpid
except OSError as e:
if e.args[0] == errno.EPERM:
return wpid
if e.args[0] == errno.ESRCH:
return
raise