2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

2467. [bug] Failure of fcntl(F_DUPFD) wasn't logged. [RT #18740]

This commit is contained in:
Tatuya JINMEI 神明達哉
2008-10-17 21:49:23 +00:00
parent 1f030ca8a3
commit b05585dcfe
2 changed files with 10 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
2467. [bug] Failure of fcntl(F_DUPFD) wasn't logged. [RT #18740]
2466. [doc] ARM: explain max-cache-ttl 0 SERVFAIL issue. 2466. [doc] ARM: explain max-cache-ttl 0 SERVFAIL issue.
[RT #18302] [RT #18302]

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: socket.c,v 1.303 2008/09/23 02:20:21 marka Exp $ */ /* $Id: socket.c,v 1.304 2008/10/17 21:49:23 jinmei Exp $ */
/*! \file */ /*! \file */
@@ -1894,6 +1894,13 @@ opensocket(isc_socketmgr_t *manager, isc_socket_t *sock) {
switch (errno) { switch (errno) {
case EMFILE: case EMFILE:
case ENFILE: case ENFILE:
isc__strerror(errno, strbuf, sizeof(strbuf));
isc_log_iwrite(isc_lctx, ISC_LOGCATEGORY_GENERAL,
ISC_LOGMODULE_SOCKET, ISC_LOG_ERROR,
isc_msgcat, ISC_MSGSET_SOCKET,
ISC_MSG_TOOMANYFDS,
"%s: %s", err, strbuf);
/* fallthrough */
case ENOBUFS: case ENOBUFS:
return (ISC_R_NORESOURCES); return (ISC_R_NORESOURCES);