mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
2467. [bug] Failure of fcntl(F_DUPFD) wasn't logged. [RT #18740]
This commit is contained in:
parent
1f030ca8a3
commit
b05585dcfe
2
CHANGES
2
CHANGES
@ -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.
|
||||
[RT #18302]
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* 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 */
|
||||
|
||||
@ -1894,6 +1894,13 @@ opensocket(isc_socketmgr_t *manager, isc_socket_t *sock) {
|
||||
switch (errno) {
|
||||
case EMFILE:
|
||||
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:
|
||||
return (ISC_R_NORESOURCES);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user