mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 11.6 into 11.7
This commit is contained in:
@@ -209,7 +209,7 @@ typedef fp_except fp_except_t;
|
||||
|
||||
inline void setup_fpu()
|
||||
{
|
||||
#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT)
|
||||
#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT) && defined(FP_X_INV)
|
||||
/* We can't handle floating point exceptions with threads, so disable
|
||||
this on freebsd
|
||||
Don't fall for overflow, underflow,divide-by-zero or loss of precision.
|
||||
@@ -222,7 +222,7 @@ inline void setup_fpu()
|
||||
fpsetmask(~(FP_X_INV | FP_X_OFL | FP_X_UFL | FP_X_DZ |
|
||||
FP_X_IMP));
|
||||
#endif /* FP_X_DNML */
|
||||
#endif /* __FreeBSD__ && HAVE_IEEEFP_H && !HAVE_FEDISABLEEXCEPT */
|
||||
#endif /* __FreeBSD__ && HAVE_IEEEFP_H && !HAVE_FEDISABLEEXCEPT && FP_X_INV */
|
||||
|
||||
#ifdef HAVE_FEDISABLEEXCEPT
|
||||
fedisableexcept(FE_ALL_EXCEPT);
|
||||
@@ -6505,7 +6505,9 @@ void handle_connections_sockets()
|
||||
&length);
|
||||
if (mysql_socket_getfd(new_sock) != INVALID_SOCKET)
|
||||
handle_accepted_socket(new_sock, sock);
|
||||
else if (socket_errno != SOCKET_EINTR && socket_errno != SOCKET_EAGAIN)
|
||||
else if (socket_errno == SOCKET_EAGAIN || socket_errno == SOCKET_EWOULDBLOCK)
|
||||
break;
|
||||
else if (socket_errno != SOCKET_EINTR)
|
||||
{
|
||||
/*
|
||||
accept(2) failed on the listening port.
|
||||
|
Reference in New Issue
Block a user