1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-26 17:41:08 +01:00

Add the usleep back in

MM convinced me.
This commit is contained in:
James Lee 2012-02-28 20:50:42 -07:00
parent ecc92eebce
commit 6f2d7dc1d1

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) {