Commit 07a441b4 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

print the reason if isc_socket_bind() fails


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@260 e5f2f494-b856-4b98-b285-d166d9295462
parent c3932c43
......@@ -1146,6 +1146,10 @@ lsock_open(void)
&sock) == ISC_R_SUCCESS);
RUNTIME_CHECK(sock != NULL);
result = isc_socket_bind(sock, &sa, ISC_SOCKET_REUSEADDRESS);
if (result != ISC_R_SUCCESS) {
fprintf(stderr, "socket bind failed: %s\n",
isc_result_totext(result));
}
RUNTIME_CHECK(result == ISC_R_SUCCESS);
RUNTIME_CHECK(isc_socket_listen(sock, 0) == ISC_R_SUCCESS);
......
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