diff --git a/jms b/jms index cd9ad396d2bb5e8e2cdc9efa3ce1baf3eb075481..0c2ae8fd32a9fc7239aba2d420316243f7709c70 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