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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a6b0029f
Commit
a6b0029f
authored
Jan 04, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EADDRINUSE is not defined on Windows.
parent
e1fdf8b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
include/my_global.h
include/my_global.h
+3
-0
sql/mysqld.cc
sql/mysqld.cc
+1
-1
No files found.
include/my_global.h
View file @
a6b0029f
...
@@ -862,6 +862,7 @@ typedef off_t os_off_t;
...
@@ -862,6 +862,7 @@ typedef off_t os_off_t;
#define SOCKET_EAGAIN WSAEINPROGRESS
#define SOCKET_EAGAIN WSAEINPROGRESS
#define SOCKET_ETIMEDOUT WSAETIMEDOUT
#define SOCKET_ETIMEDOUT WSAETIMEDOUT
#define SOCKET_EWOULDBLOCK WSAEWOULDBLOCK
#define SOCKET_EWOULDBLOCK WSAEWOULDBLOCK
#define SOCKET_EADDRINUSE WSAEADDRINUSE
#define SOCKET_ENFILE ENFILE
#define SOCKET_ENFILE ENFILE
#define SOCKET_EMFILE EMFILE
#define SOCKET_EMFILE EMFILE
#elif defined(OS2)
#elif defined(OS2)
...
@@ -870,6 +871,7 @@ typedef off_t os_off_t;
...
@@ -870,6 +871,7 @@ typedef off_t os_off_t;
#define SOCKET_EAGAIN SOCEINPROGRESS
#define SOCKET_EAGAIN SOCEINPROGRESS
#define SOCKET_ETIMEDOUT SOCKET_EINTR
#define SOCKET_ETIMEDOUT SOCKET_EINTR
#define SOCKET_EWOULDBLOCK SOCEWOULDBLOCK
#define SOCKET_EWOULDBLOCK SOCEWOULDBLOCK
#define SOCKET_EADDRINUSE SOCEADDRINUSE
#define SOCKET_ENFILE SOCENFILE
#define SOCKET_ENFILE SOCENFILE
#define SOCKET_EMFILE SOCEMFILE
#define SOCKET_EMFILE SOCEMFILE
#define closesocket(A) soclose(A)
#define closesocket(A) soclose(A)
...
@@ -880,6 +882,7 @@ typedef off_t os_off_t;
...
@@ -880,6 +882,7 @@ typedef off_t os_off_t;
#define SOCKET_EAGAIN EAGAIN
#define SOCKET_EAGAIN EAGAIN
#define SOCKET_ETIMEDOUT SOCKET_EINTR
#define SOCKET_ETIMEDOUT SOCKET_EINTR
#define SOCKET_EWOULDBLOCK EWOULDBLOCK
#define SOCKET_EWOULDBLOCK EWOULDBLOCK
#define SOCKET_EADDRINUSE EADDRINUSE
#define SOCKET_ENFILE ENFILE
#define SOCKET_ENFILE ENFILE
#define SOCKET_EMFILE EMFILE
#define SOCKET_EMFILE EMFILE
#endif
#endif
...
...
sql/mysqld.cc
View file @
a6b0029f
...
@@ -1401,7 +1401,7 @@ static void network_init(void)
...
@@ -1401,7 +1401,7 @@ static void network_init(void)
{
{
if
(((
ret
=
bind
(
ip_sock
,
my_reinterpret_cast
(
struct
sockaddr
*
)
(
&
IPaddr
),
if
(((
ret
=
bind
(
ip_sock
,
my_reinterpret_cast
(
struct
sockaddr
*
)
(
&
IPaddr
),
sizeof
(
IPaddr
)))
>=
0
)
||
sizeof
(
IPaddr
)))
>=
0
)
||
(
socket_errno
!=
EADDRINUSE
)
||
(
socket_errno
!=
SOCKET_
EADDRINUSE
)
||
(
waited
>=
mysqld_port_timeout
))
(
waited
>=
mysqld_port_timeout
))
break
;
break
;
sql_print_information
(
"Retrying bind on TCP/IP port %u"
,
mysqld_port
);
sql_print_information
(
"Retrying bind on TCP/IP port %u"
,
mysqld_port
);
...
...
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