summaryrefslogtreecommitdiff
path: root/server-tools
diff options
context:
space:
mode:
authorunknown <petr/cps@outpost.site>2006-12-04 19:50:11 +0300
committerunknown <petr/cps@outpost.site>2006-12-04 19:50:11 +0300
commita309ff223af24b6496f5958a807593bb0c115a74 (patch)
tree93d52659690e9972a9f0a368805c75b4e6cc3568 /server-tools
parent425183958b2e692bc6c0e79c34cf366ebc23bf6d (diff)
parent1adc13681283fe637ece524c9b1a4311700cfbd7 (diff)
downloadmariadb-git-a309ff223af24b6496f5958a807593bb0c115a74.tar.gz
Merge outpost.site:/home/cps/mysql/trees/5.0-runtime-19044
into outpost.site:/home/cps/mysql/trees/5.1-runtime-19044 server-tools/instance-manager/listener.cc: Auto merged
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 f18a594985c..7aa2624acab 100644
--- a/server-tools/instance-manager/listener.cc
+++ b/server-tools/instance-manager/listener.cc
@@ -154,7 +154,7 @@ void Listener::run()
else
{
shutdown(client_fd, SHUT_RDWR);
- close(client_fd);
+ closesocket(client_fd);
}
}
}
@@ -166,7 +166,7 @@ void Listener::run()
log_info("Listener: shutdown requested, exiting...");
for (i= 0; i < num_sockets; i++)
- close(sockets[i]);
+ closesocket(sockets[i]);
#ifndef __WIN__
unlink(unix_socket_address.sun_path);
@@ -180,7 +180,7 @@ void Listener::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();
@@ -228,7 +228,7 @@ int Listener::create_tcp_socket()
{
log_error("Listener: bind(ip socket) failed: %s.",
(const char *) strerror(errno));
- close(ip_socket);
+ closesocket(ip_socket);
return -1;
}
@@ -236,7 +236,7 @@ int Listener::create_tcp_socket()
{
log_error("Listener: listen(ip socket) failed: %s.",
(const char *) strerror(errno));
- close(ip_socket);
+ closesocket(ip_socket);
return -1;
}