diff options
Diffstat (limited to 'mom.lua')
-rw-r--r-- | mom.lua | 3 |
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) |