diff options
| author | ruki <[email protected]> | 2019-08-18 23:29:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-18 23:29:31 +0800 |
| commit | 236988050bfe9f51ebe6b72c6e3d760bb2e349ef (patch) | |
| tree | a024e29828dd0954705f276bd257cd77cafad1c5 /xmake/core/base/process.lua | |
| parent | 35e6c625a2279a9c6adfdba1027b27d088b3c8b6 (diff) | |
rewrite io
Diffstat (limited to 'xmake/core/base/process.lua')
| -rw-r--r-- | xmake/core/base/process.lua | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
