1
0
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:
batrick
2012-07-14 22:32:37 +00:00
parent 65a8490539
commit bbea3dc088

View File

@@ -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