1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Abort if listen() fails

This commit is contained in:
monty@tik.mysql.fi
2002-03-10 04:28:50 +02:00
parent 798c977c0f
commit f6c87d7cf7

View File

@ -970,8 +970,11 @@ static void server_init(void)
unireg_abort(1);
}
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);
unireg_abort(1);
}
}
if (mysqld_chroot)