mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 09:09:59 -04:00
add ISC_R_TASKSHUTDOWN and use it in isc_task_send()
This commit is contained in:
parent
a609982aa7
commit
59b2e9c361
3 changed files with 4 additions and 2 deletions
|
|
@ -20,7 +20,8 @@ typedef unsigned int isc_result_t;
|
|||
#define ISC_R_NORESOURCES 13 /* not enough resources */
|
||||
#define ISC_R_EOF 14 /* end of file */
|
||||
#define ISC_R_BOUND 15 /* already bound */
|
||||
#define ISC_R_LAST_ENTRY 15 /* last entry in the file */
|
||||
#define ISC_R_TASKSHUTDOWN 16 /* task was shut down */
|
||||
#define ISC_R_LAST_ENTRY 16 /* last entry in the list */
|
||||
|
||||
#define ISC_R_UNEXPECTED 0xFFFFFFFFL
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ static char *text_table[ISC_R_LAST_ENTRY + 1] = {
|
|||
"not enough free resources", /* 13 */
|
||||
"end of file", /* 14 */
|
||||
"socket already bound", /* 15 */
|
||||
"task was shut down", /* 16 */
|
||||
};
|
||||
|
||||
char *
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ isc_task_send(isc_task_t task, isc_event_t *eventp) {
|
|||
if (discard) {
|
||||
isc_event_free(&event);
|
||||
*eventp = NULL;
|
||||
return (ISC_R_NORESOURCES);
|
||||
return (ISC_R_TASKSHUTDOWN);
|
||||
}
|
||||
|
||||
if (was_idle) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue