2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-03 16:15:27 +00:00

Generalize ISC_R_TASKSHUTTINGDOWN to ISC_R_SHUTTINGDOWN

This commit is contained in:
Michael Graff
1999-07-14 22:15:29 +00:00
parent bed86971bf
commit 0d3119d4d1
3 changed files with 3 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ ISC_LANG_BEGINDECLS
#define ISC_R_NOSPACE 19 /* ran out of space */ #define ISC_R_NOSPACE 19 /* ran out of space */
#define ISC_R_CANCELED 20 #define ISC_R_CANCELED 20
#define ISC_R_TASKNOSEND 21 #define ISC_R_TASKNOSEND 21
#define ISC_R_TASKSHUTTINGDOWN 22 /* task is shutting down */ #define ISC_R_SHUTTINGDOWN 22 /* shutting down */
#define ISC_R_NOTFOUND 23 #define ISC_R_NOTFOUND 23
#define ISC_R_UNEXPECTEDEND 24 /* unexpected end of input */ #define ISC_R_UNEXPECTEDEND 24 /* unexpected end of input */
#define ISC_R_FAILURE 25 /* generic failure */ #define ISC_R_FAILURE 25 /* generic failure */

View File

@@ -63,7 +63,7 @@ static char *text[ISC_R_NRESULTS] = {
"ran out of space", /* 19 */ "ran out of space", /* 19 */
"operation canceled", /* 20 */ "operation canceled", /* 20 */
"sending events is not allowed", /* 21 */ "sending events is not allowed", /* 21 */
"task is shutting down", /* 22 */ "shutting down", /* 22 */
"not found", /* 23 */ "not found", /* 23 */
"unexpected end of input", /* 24 */ "unexpected end of input", /* 24 */
"failure", /* 25 */ "failure", /* 25 */

View File

@@ -734,7 +734,7 @@ isc_task_onshutdown(isc_task_t *task, isc_taskaction_t action, void *arg) {
result = ISC_R_TASKDONE; result = ISC_R_TASKDONE;
} else if (TASK_SHUTTINGDOWN(task)) { } else if (TASK_SHUTTINGDOWN(task)) {
disallowed = ISC_TRUE; disallowed = ISC_TRUE;
result = ISC_R_TASKSHUTTINGDOWN; result = ISC_R_SHUTTINGDOWN;
} else } else
ENQUEUE(task->on_shutdown, event, link); ENQUEUE(task->on_shutdown, event, link);
UNLOCK(&task->lock); UNLOCK(&task->lock);