If we catch the pid file in a transistory state, return None

This commit is contained in:
Mike Place 2017-08-14 12:23:27 -07:00
parent 5d5b22021b
commit 5e930b8cbd

View file

@ -130,8 +130,10 @@ def get_pidfile(pidfile):
'''
with salt.utils.fopen(pidfile) as pdf:
pid = pdf.read()
return int(pid)
if pid:
return int(pid)
else:
return
def clean_proc(proc, wait_for_kill=10):