summaryrefslogtreecommitdiff
path: root/server-tools
diff options
context:
space:
mode:
authormsvensson@pilot.mysql.com <>2007-01-17 11:53:00 +0100
committermsvensson@pilot.mysql.com <>2007-01-17 11:53:00 +0100
commit51292deb36a220894367533e289be57749fd4ec5 (patch)
tree769da28ca256c82711b0b73af5ec9e75f6f36628 /server-tools
parentdb79dd6b730d33ab8dbd48889ab9c9793cdae4c6 (diff)
parentb711c554f55627f590126996d85578bc9a68b38e (diff)
downloadmariadb-git-51292deb36a220894367533e289be57749fd4ec5.tar.gz
Merge pilot.mysql.com:/home/msvensson/mysql/mysql-5.0
into pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
Diffstat (limited to 'server-tools')
-rw-r--r--server-tools/instance-manager/listener.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/server-tools/instance-manager/listener.cc b/server-tools/instance-manager/listener.cc
index 0f05d1030d7..15583b233fb 100644
--- a/server-tools/instance-manager/listener.cc
+++ b/server-tools/instance-manager/listener.cc
@@ -187,7 +187,7 @@ void Listener_thread::run()
else
{
shutdown(client_fd, SHUT_RDWR);
- close(client_fd);
+ closesocket(client_fd);
}
}
}
@@ -199,7 +199,7 @@ void Listener_thread::run()
log_info("Listener_thread::run(): shutdown requested, exiting...");
for (i= 0; i < num_sockets; i++)
- close(sockets[i]);
+ closesocket(sockets[i]);
#ifndef __WIN__
unlink(unix_socket_address.sun_path);
@@ -212,7 +212,7 @@ void Listener_thread::run()
err:
// we have to close the ip sockets in case of error
for (i= 0; i < num_sockets; i++)
- close(sockets[i]);
+ closesocket(sockets[i]);
thread_registry.unregister_thread(&thread_info);
thread_registry.request_shutdown();
@@ -259,7 +259,7 @@ int Listener_thread::create_tcp_socket()
{
log_error("Listener_thread::run(): bind(ip socket) failed, '%s'",
strerror(errno));
- close(ip_socket);
+ closesocket(ip_socket);
return -1;
}
@@ -267,7 +267,7 @@ int Listener_thread::create_tcp_socket()
{
log_error("Listener_thread::run(): listen(ip socket) failed, %s",
strerror(errno));
- close(ip_socket);
+ closesocket(ip_socket);
return -1;
}