diff options
| author | ruki <[email protected]> | 2019-08-17 11:24:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-17 11:24:46 +0800 |
| commit | db3afc4c41108ad62e3fec46fcbe2a0399b15da7 (patch) | |
| tree | 83719efc81d2bffa09b56837310e7f12a777bfb1 | |
| parent | 4bc7a9e0ee3be894bcb17d9bc188d344d4faee52 (diff) | |
fix proc close
| -rw-r--r-- | xmake/actions/build/cleaner.lua | 2 | ||||
| -rw-r--r-- | 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 } |
