mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Abort if listen() fails
This commit is contained in:
@@ -970,8 +970,11 @@ static void server_init(void)
|
|||||||
unireg_abort(1);
|
unireg_abort(1);
|
||||||
}
|
}
|
||||||
if (listen(ip_sock,(int) back_log) < 0)
|
if (listen(ip_sock,(int) back_log) < 0)
|
||||||
sql_print_error("Warning: listen() on TCP/IP failed with error %d",
|
{
|
||||||
|
sql_print_error("Error: listen() on TCP/IP failed with error %d",
|
||||||
socket_errno);
|
socket_errno);
|
||||||
|
unireg_abort(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mysqld_chroot)
|
if (mysqld_chroot)
|
||||||
|
Reference in New Issue
Block a user