mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
commit
a1817f1de3
@ -130,8 +130,10 @@ def get_pidfile(pidfile):
|
||||
'''
|
||||
with salt.utils.fopen(pidfile) as pdf:
|
||||
pid = pdf.read()
|
||||
|
||||
if pid:
|
||||
return int(pid)
|
||||
else:
|
||||
return
|
||||
|
||||
|
||||
def clean_proc(proc, wait_for_kill=10):
|
||||
|
Loading…
Reference in New Issue
Block a user