提交 131e588d 编写于 作者: M mago960806 提交者: baltery

is_running()里的打开pid文件的操作已经在get_pid()中执行过了,不需要再次执行 (#2335)

上级 4bf0dfcf
......@@ -108,8 +108,7 @@ def is_running(s, unlink=True):
pid_file = get_pid_file_path(s)
if os.path.isfile(pid_file):
with open(pid_file, 'r') as f:
pid = get_pid(s)
pid = get_pid(s)
if check_pid(pid):
return True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册