From 131e588d82db1797fc1cb0c4626cce12b6b33ded Mon Sep 17 00:00:00 2001 From: mago960806 Date: Thu, 10 Jan 2019 10:21:05 +0800 Subject: [PATCH] =?UTF-8?q?is=5Frunning()=E9=87=8C=E7=9A=84=E6=89=93?= =?UTF-8?q?=E5=BC=80pid=E6=96=87=E4=BB=B6=E7=9A=84=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E5=B7=B2=E7=BB=8F=E5=9C=A8get=5Fpid()=E4=B8=AD=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E8=BF=87=E4=BA=86,=E4=B8=8D=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E5=86=8D=E6=AC=A1=E6=89=A7=E8=A1=8C=20(#2335)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jms | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jms b/jms index cd9ad396d..0c2ae8fd3 100755 --- a/jms +++ b/jms @@ -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