Prevent manager from busy looping.

I saw this with the new threading code but I'm wondering if it also
helps with the "high CPU usage with low traffiv volume" problem.
This commit is contained in:
Robin Sommer 2012-03-01 16:00:30 -08:00
parent 56dd7918d0
commit 6429d1248a

View file

@ -486,6 +486,8 @@ void net_run()
// since Bro timers are not high-precision anyway.)
if ( ! using_communication )
usleep(100000);
else
usleep(1000);
// Flawfinder says about usleep:
//