Reasons:
- It allows to run several kresd instances and use map() without
worrying about instance parameters.
- It removes special case from map().
Proper functionality depends on changes in MR !1011.
worker.control_path = worker.control_path or (worker.cwd .. '/control/')
-- Bind to control socket by default
-if not C.the_args.interactive and n_control_socks == 0 and not env.KRESD_NO_LISTEN then
+if n_control_socks == 0 and not env.KRESD_NO_LISTEN then
local path = worker.control_path..worker.pid
local ok, err = pcall(net.listen, path, nil, { kind = 'control' })
if not ok then
local filetab = kluautil.list_dir(worker.control_path)
if next(filetab) == nil then
- local ret = eval_cmd(cmd, format == 'luaobj')
- if ret == nil then
- results = {}
- else
- table.insert(results, ret)
- end
- return results
+ panic('no control sockets found in directory %s',
+ worker.control_path)
end
for _,file in ipairs(filetab) do