mirror of
https://github.com/nmap/nmap.git
synced 2026-02-15 09:56:33 +00:00
"Start" the worker thread so the host timeout accounting is correct.
Also add to num_threads for accounting.
This commit is contained in:
@@ -821,6 +821,8 @@ local function run (threads_iter, hosts)
|
||||
};
|
||||
setmetatable(thread, thread_mt);
|
||||
total, all[co], pending[co] = total+1, thread, thread;
|
||||
num_threads = num_threads + 1;
|
||||
thread:start(timeouts);
|
||||
local function info ()
|
||||
return status(co), rawget(thread, "error");
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user