about summary refs log tree commit diff
path: root/mom.lua
diff options
context:
space:
mode:
authorequa <equaa@protonmail.com>2022-03-10 05:23:02 +0000
committerequa <equaa@protonmail.com>2022-03-10 05:23:17 +0000
commit0890ddb40f59170f1c672f7ed10b89566fe97c93 (patch)
tree2750292779152661f9569fa35fda21ade942f30b /mom.lua
parent86f33c8e9153c1a72d4798ff82af5260bbe01661 (diff)
make luacheck happy
Diffstat (limited to 'mom.lua')
-rw-r--r--mom.lua3
1 files changed, 1 insertions, 2 deletions
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)