[svn] commit: r260 - /branches/f2f200910/src/bin/msgq/msgq.c

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Oct 30 21:57:50 UTC 2009


Author: jinmei
Date: Fri Oct 30 21:57:49 2009
New Revision: 260

Log:
print the reason if isc_socket_bind() fails

Modified:
    branches/f2f200910/src/bin/msgq/msgq.c

Modified: branches/f2f200910/src/bin/msgq/msgq.c
==============================================================================
--- branches/f2f200910/src/bin/msgq/msgq.c (original)
+++ branches/f2f200910/src/bin/msgq/msgq.c Fri Oct 30 21:57:49 2009
@@ -1146,6 +1146,10 @@
 						&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);




More information about the bind10-changes mailing list