Commit 4faf466b authored by unknown's avatar unknown

Fix for Bug #14388 "IM eats 99% CPU"


server-tools/instance-manager/listener.cc:
  reinitialize timer used in select(), as on linux it is modified
  to reflect amout of time not slept (e.g. set ot zero)
parent bc7f923a
...@@ -122,11 +122,15 @@ void Listener_thread::run() ...@@ -122,11 +122,15 @@ void Listener_thread::run()
n++; n++;
timeval tv; timeval tv;
tv.tv_sec= 0;
tv.tv_usec= 100000;
while (!thread_registry.is_shutdown()) while (!thread_registry.is_shutdown())
{ {
fd_set read_fds_arg= read_fds; fd_set read_fds_arg= read_fds;
/*
We should reintialize timer as on linux it is modified
to reflect amout of time not slept.
*/
tv.tv_sec= 0;
tv.tv_usec= 100000;
/* /*
When using valgrind 2.0 this syscall doesn't get kicked off by a When using valgrind 2.0 this syscall doesn't get kicked off by a
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment