From 236988050bfe9f51ebe6b72c6e3d760bb2e349ef Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 18 Aug 2019 23:29:31 +0800 Subject: rewrite io --- xmake/core/base/process.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xmake/core/base/process.lua') diff --git a/xmake/core/base/process.lua b/xmake/core/base/process.lua index cf5f3744e..1e4fe5434 100644 --- a/xmake/core/base/process.lua +++ b/xmake/core/base/process.lua @@ -84,8 +84,7 @@ end -- gc(subprocess) function _subprocess:__gc() - local ok = self._PROC and process._close(self._PROC) or false - if ok then + if self._PROC and process._close(self._PROC) then self._PROC = nil end end -- cgit v1.3.1