From cecb1de45b7b7f77776155d24eaf8e1ba1e1a8d1 Mon Sep 17 00:00:00 2001 From: "Vanya A. Sergeev" Date: Tue, 16 Mar 2021 03:16:02 -0500 Subject: [PATCH] core/composite: fix usage of array_all() with table in wait() --- radio/core/composite.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/core/composite.lua b/radio/core/composite.lua index 8a137371..b5323314 100644 --- a/radio/core/composite.lua +++ b/radio/core/composite.lua @@ -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