Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3d5c638b
Commit
3d5c638b
authored
Dec 04, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0-runtime
into outpost.site:/home/cps/mysql/trees/5.0-runtime-19044
parents
85e15fb3
1adc1368
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
server-tools/instance-manager/listener.cc
server-tools/instance-manager/listener.cc
+5
-5
No files found.
server-tools/instance-manager/listener.cc
View file @
3d5c638b
...
@@ -188,7 +188,7 @@ void Listener_thread::run()
...
@@ -188,7 +188,7 @@ void Listener_thread::run()
else
else
{
{
shutdown
(
client_fd
,
SHUT_RDWR
);
shutdown
(
client_fd
,
SHUT_RDWR
);
close
(
client_fd
);
close
socket
(
client_fd
);
}
}
}
}
}
}
...
@@ -200,7 +200,7 @@ void Listener_thread::run()
...
@@ -200,7 +200,7 @@ void Listener_thread::run()
log_info
(
"Listener_thread::run(): shutdown requested, exiting..."
);
log_info
(
"Listener_thread::run(): shutdown requested, exiting..."
);
for
(
i
=
0
;
i
<
num_sockets
;
i
++
)
for
(
i
=
0
;
i
<
num_sockets
;
i
++
)
close
(
sockets
[
i
]);
close
socket
(
sockets
[
i
]);
#ifndef __WIN__
#ifndef __WIN__
unlink
(
unix_socket_address
.
sun_path
);
unlink
(
unix_socket_address
.
sun_path
);
...
@@ -213,7 +213,7 @@ void Listener_thread::run()
...
@@ -213,7 +213,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
(
i
=
0
;
i
<
num_sockets
;
i
++
)
for
(
i
=
0
;
i
<
num_sockets
;
i
++
)
close
(
sockets
[
i
]);
close
socket
(
sockets
[
i
]);
thread_registry
.
unregister_thread
(
&
thread_info
);
thread_registry
.
unregister_thread
(
&
thread_info
);
thread_registry
.
request_shutdown
();
thread_registry
.
request_shutdown
();
...
@@ -260,7 +260,7 @@ int Listener_thread::create_tcp_socket()
...
@@ -260,7 +260,7 @@ int Listener_thread::create_tcp_socket()
{
{
log_error
(
"Listener_thread::run(): bind(ip socket) failed, '%s'"
,
log_error
(
"Listener_thread::run(): bind(ip socket) failed, '%s'"
,
strerror
(
errno
));
strerror
(
errno
));
close
(
ip_socket
);
close
socket
(
ip_socket
);
return
-
1
;
return
-
1
;
}
}
...
@@ -268,7 +268,7 @@ int Listener_thread::create_tcp_socket()
...
@@ -268,7 +268,7 @@ int Listener_thread::create_tcp_socket()
{
{
log_error
(
"Listener_thread::run(): listen(ip socket) failed, %s"
,
log_error
(
"Listener_thread::run(): listen(ip socket) failed, %s"
,
strerror
(
errno
));
strerror
(
errno
));
close
(
ip_socket
);
close
socket
(
ip_socket
);
return
-
1
;
return
-
1
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment