From e5de852087edbaa5630426cb8aa9988daeb41cd3 Mon Sep 17 00:00:00 2001 From: Simon Voordouw Date: Thu, 6 Jul 2017 18:10:31 +0200 Subject: [PATCH] close popen filehandles --- src/rest/api/api_printer.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest/api/api_printer.lua b/src/rest/api/api_printer.lua index 4be0d31..4e5467e 100644 --- a/src/rest/api/api_printer.lua +++ b/src/rest/api/api_printer.lua @@ -72,8 +72,8 @@ local function getCurrentPrint() end local function stopFetch() - io.popen("killall print-fetch") - io.popen("rm /tmp/startcode /tmp/endcode") + io.popen("killall print-fetch"):close() + io.popen("rm /tmp/startcode /tmp/endcode"):close() end function M.progress(request, response)