Commit 2240cd2f authored by unknown's avatar unknown

Abort if listen() fails

parent defcaaf4
...@@ -970,8 +970,11 @@ static void server_init(void) ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment