diff options
| author | ruki <[email protected]> | 2020-03-23 21:00:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-03-23 00:04:45 +0800 |
| commit | 32d75762f2fe48cf413132d935d0834d7e3d5e6e (patch) | |
| tree | fcb42ea974c913c162c609877d4832707a2c65c0 /xmake/core/base/process.lua | |
| parent | 5b1a9e54c3d97e08df6402baf22f528cf47ef1ae (diff) | |
update process
Diffstat (limited to 'xmake/core/base/process.lua')
| -rw-r--r-- | xmake/core/base/process.lua | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/xmake/core/base/process.lua b/xmake/core/base/process.lua index e2cad423f..78f698f6a 100644 --- a/xmake/core/base/process.lua +++ b/xmake/core/base/process.lua @@ -47,7 +47,6 @@ function _subprocess.new(program, proc) subprocess._PROGRAM = program subprocess._PROC = proc setmetatable(subprocess, _subprocess) - process._openlist()[subprocess:cdata()] = subprocess return subprocess end @@ -136,7 +135,6 @@ function _subprocess:close() -- close process ok = process._close(self:cdata()) if ok then - process._openlist()[self:cdata()] = nil self._PROC = nil end return ok @@ -162,16 +160,6 @@ function _subprocess:__gc() end end --- get all opened processes list -function process._openlist() - local list = process._LIST - if not list then - list = {} - process._LIST = list - end - return list -end - -- open a subprocess -- -- @param command the process command @@ -259,14 +247,5 @@ function process.openv(program, argv, opt) end end --- kill all pending process -function process.killall() - for _, proc in pairs(process._openlist()) do - if proc and proc:cdata() then - proc:kill() - end - end -end - -- return module: process return process |
