From 17221052257fdc33705a43553d694cbefc7ba839 Mon Sep 17 00:00:00 2001 From: Caohongtao Date: Tue, 13 Aug 2024 07:15:04 +0000 Subject: [PATCH] bug fixed Add close file operation Signed-off-by: Caohongtao --- common/conf_check.py | 1 + 1 file changed, 1 insertion(+) diff --git a/common/conf_check.py b/common/conf_check.py index d81d9f3..785c8a6 100644 --- a/common/conf_check.py +++ b/common/conf_check.py @@ -35,6 +35,7 @@ class ConfCheck: devnull = open("/dev/null", "w") ret = subprocess.Popen(shlex('test -e ' + file), stdout = devnull, stderr = devnull) ret.communicate() + devnull.close() if 0 == ret.returncode: return True else: -- Gitee