Skip to content

Commit

Permalink
core/composite: fix usage of array_all() with table in wait()
Browse files Browse the repository at this point in the history
  • Loading branch information
vsergeev committed Apr 5, 2021
1 parent 5194388 commit cecb1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/core/composite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ function CompositeBlock:wait()
end

-- Check if all child processes already exited
local all_exited = util.array_all(self._pids, function (pid) return ffi.C.waitpid(pid, nil, ffi.C.WNOHANG) > 0 end)
local all_exited = util.array_all(util.table_values(self._pids), function (pid) return ffi.C.waitpid(pid, nil, ffi.C.WNOHANG) > 0 end)
if all_exited then
self:_reap()
return
Expand Down

0 comments on commit cecb1de

Please sign in to comment.