From f057fd62e29fb8df32e066f9419c0dc2769fa2f6 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Fri, 6 Aug 2010 11:16:00 +0200 Subject: [PATCH] bugfix: close pipe Signed-off-by: Gordon Hecker --- generic/e2lib.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generic/e2lib.lua b/generic/e2lib.lua index 15f28c8..5d65e51 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -214,10 +214,10 @@ function program_output(cmd) local i = io.popen(cmd) if not i then abort("invocation of program failed: ", cmd) - else - local input = i:read("*a") - return input end + local input = i:read("*a") + i:close() + return input end --- print a warning, composed by concatenating all arguments to a string -- 2.39.5