Commit 5e312c15 authored by hartmut@mysql.com's avatar hartmut@mysql.com

Merge mysql.com:/home/hartmut/projects/mysql/dev/5.0

into  mysql.com:/home/hartmut/projects/mysql/bk-clean/5.1
parents 2c297c07 9da74d8a
...@@ -88,7 +88,7 @@ Listener_thread::~Listener_thread() ...@@ -88,7 +88,7 @@ Listener_thread::~Listener_thread()
void Listener_thread::run() void Listener_thread::run()
{ {
int n= 0; int i, n= 0;
#ifndef __WIN__ #ifndef __WIN__
/* we use this var to check whether we are running on LinuxThreads */ /* we use this var to check whether we are running on LinuxThreads */
...@@ -117,7 +117,7 @@ void Listener_thread::run() ...@@ -117,7 +117,7 @@ void Listener_thread::run()
#endif #endif
/* II. Listen sockets and spawn childs */ /* II. Listen sockets and spawn childs */
for (int i= 0; i < num_sockets; i++) for (i= 0; i < num_sockets; i++)
n= max(n, sockets[i]); n= max(n, sockets[i]);
n++; n++;
...@@ -176,7 +176,7 @@ void Listener_thread::run() ...@@ -176,7 +176,7 @@ void Listener_thread::run()
log_info("Listener_thread::run(): shutdown requested, exiting..."); log_info("Listener_thread::run(): shutdown requested, exiting...");
for (int i= 0; i < num_sockets; i++) for (i= 0; i < num_sockets; i++)
close(sockets[i]); close(sockets[i]);
#ifndef __WIN__ #ifndef __WIN__
...@@ -189,7 +189,7 @@ void Listener_thread::run() ...@@ -189,7 +189,7 @@ void Listener_thread::run()
err: err:
// we have to close the ip sockets in case of error // we have to close the ip sockets in case of error
for (int i= 0; i < num_sockets; i++) for (i= 0; i < num_sockets; i++)
close(sockets[i]); close(sockets[i]);
thread_registry.unregister_thread(&thread_info); thread_registry.unregister_thread(&thread_info);
......
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