From db3afc4c41108ad62e3fec46fcbe2a0399b15da7 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 17 Aug 2019 11:24:46 +0800 Subject: fix proc close --- xmake/actions/build/cleaner.lua | 2 +- xmake/actions/build/statistics.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/actions/build/cleaner.lua b/xmake/actions/build/cleaner.lua index db589491e..346f27efa 100644 --- a/xmake/actions/build/cleaner.lua +++ b/xmake/actions/build/cleaner.lua @@ -55,7 +55,7 @@ function cleanup() function () local proc = process.openv("xmake", argv, {outpath = path.join(os.tmpdir(), "cleaner.log")}) if proc ~= nil then - process.close(proc) + proc:close() end end } diff --git a/xmake/actions/build/statistics.lua b/xmake/actions/build/statistics.lua index 4edcfe187..5d7d518cc 100644 --- a/xmake/actions/build/statistics.lua +++ b/xmake/actions/build/statistics.lua @@ -85,7 +85,7 @@ function post() function () local proc = process.openv("xmake", argv, {outpath = path.join(os.tmpdir(), projectname .. ".stats.log")}) if proc ~= nil then - process.close(proc) + proc:close() end end } -- cgit v1.3.1