add ISC_R_TASKSHUTDOWN and use it in isc_task_send()

This commit is contained in:
Michael Graff 1998-11-10 20:57:32 +00:00
parent a609982aa7
commit 59b2e9c361
3 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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 *

View file

@ -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) {