1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 17:59:04 +00:00

a quick hack to the scheduling algorithm of scripts, which allows scripts to

finish execution earlier (and thus close the sockets earlier)
This commit is contained in:
stoiko
2007-08-30 18:35:32 +00:00
parent 695b1a3a2d
commit 91e7ed8aa6

View File

@@ -343,7 +343,7 @@ int process_waiting2running(lua_State* l, int resume_arguments) {
// put the thread back into the running
// queue
running_scripts.push_back((*iter));
running_scripts.push_front((*iter));
waiting_scripts.erase(iter);
return SCRIPT_ENGINE_SUCCESS;