From: Gordon Hecker Date: Fri, 6 Aug 2010 09:16:00 +0000 (+0200) Subject: bugfix: close pipe X-Git-Tag: e2factory-2.3.8~10 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=f057fd62e29fb8df32e066f9419c0dc2769fa2f6;p=e2factory.git bugfix: close pipe Signed-off-by: Gordon Hecker --- 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