From 0890ddb40f59170f1c672f7ed10b89566fe97c93 Mon Sep 17 00:00:00 2001 From: equa Date: Thu, 10 Mar 2022 05:23:02 +0000 Subject: make luacheck happy --- mom.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mom.lua') diff --git a/mom.lua b/mom.lua index 4d14bd9..ef0f4c8 100644 --- a/mom.lua +++ b/mom.lua @@ -4,7 +4,6 @@ -- SIGCHILD; since this is the only time we make subprocesses in the scope -- of this program, this is fine. -local cqueues = require("cqueues") local signal = require("cqueues.signal") local wait = require("posix.sys.wait") @@ -127,7 +126,7 @@ function mom.tend(m) local pid, status = wait.wait(-1, wait.WNOHANG | wait.WUNTRACED) if pid and status ~= "running" then - client_id = m.pids[pid] + local client_id = m.pids[pid] m.pids[pid] = nil -- TODO: only restart sometimes mom.start_process(m, client_id) -- cgit 1.3.0-6-gf8a5