mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
Don't log ENFILE and EMFILE as unexpected errors
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: result.h,v 1.51 2000/11/07 20:58:07 bwelling Exp $ */
|
||||
/* $Id: result.h,v 1.52 2000/11/18 02:56:47 gson Exp $ */
|
||||
|
||||
#ifndef ISC_RESULT_H
|
||||
#define ISC_RESULT_H 1
|
||||
@@ -73,11 +73,11 @@
|
||||
#define ISC_R_FAMILYMISMATCH 47 /* address family mismatch */
|
||||
#define ISC_R_FAMILYNOSUPPORT 48 /* AF not supported */
|
||||
#define ISC_R_BADHEX 49 /* bad hex encoding */
|
||||
|
||||
#define ISC_R_TOOMANYOPENFILES 50 /* too many open files */
|
||||
/*
|
||||
* Not a result code: the number of results.
|
||||
*/
|
||||
#define ISC_R_NRESULTS 50
|
||||
#define ISC_R_NRESULTS 51
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: result.c,v 1.49 2000/11/07 20:58:05 bwelling Exp $ */
|
||||
/* $Id: result.c,v 1.50 2000/11/18 02:56:45 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -88,6 +88,7 @@ static const char *text[ISC_R_NRESULTS] = {
|
||||
"address family mismatch", /* 47 */
|
||||
"address family not supported", /* 48 */
|
||||
"bad hex encoding", /* 49 */
|
||||
"too many open files" /* 50 */
|
||||
};
|
||||
|
||||
#define ISC_RESULT_RESULTSET 2
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: errno2result.c,v 1.5 2000/11/14 23:37:26 tale Exp $ */
|
||||
/* $Id: errno2result.c,v 1.6 2000/11/18 02:56:48 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -49,6 +49,9 @@ isc__errno2result(int posixerrno) {
|
||||
return (ISC_R_IOERROR);
|
||||
case ENOMEM:
|
||||
return (ISC_R_NOMEMORY);
|
||||
case ENFILE:
|
||||
case EMFILE:
|
||||
return (ISC_R_TOOMANYOPENFILES);
|
||||
default:
|
||||
/*
|
||||
* XXXDCL would be nice if perhaps this function could
|
||||
|
Reference in New Issue
Block a user