Merge branch 'master' of github.com:rapid7/metasploit-framework

This commit is contained in:
sinn3r 2012-02-29 10:14:11 -06:00
commit 73ba8aca60
2 changed files with 5 additions and 1 deletions

View File

@ -243,6 +243,10 @@ scheduler_run(THREAD *thread)
// &scheduler_cond, LIST_EMPTY(&WEHead), polltable == NULL);
pthread_cond_wait(&scheduler_cond, &scheduler_mutex);
// pthread_cond_wait still chews CPU in some cases, usleep to yield
// processor so we don't just spin.
usleep(1000);
}
LIST_FOREACH(current, &WEHead, link) {

View File

@ -334,7 +334,7 @@ class Meterpreter < Rex::Post::Meterpreter::Client
# Find the first non-loopback address
if not nhost
iface = ifaces.select{|i| t.ip != "127.0.0.1" }
iface = ifaces.select{|i| i.ip != "127.0.0.1" }
if iface.length > 0
nhost = iface.first.ip
end