diff --git a/lib/isc/include/isc/result.h b/lib/isc/include/isc/result.h index 1ef2a642f8..483e543e36 100644 --- a/lib/isc/include/isc/result.h +++ b/lib/isc/include/isc/result.h @@ -47,7 +47,7 @@ ISC_LANG_BEGINDECLS #define ISC_R_NOSPACE 19 /* ran out of space */ #define ISC_R_CANCELED 20 #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_UNEXPECTEDEND 24 /* unexpected end of input */ #define ISC_R_FAILURE 25 /* generic failure */ diff --git a/lib/isc/result.c b/lib/isc/result.c index f02ae3047d..5e439e499d 100644 --- a/lib/isc/result.c +++ b/lib/isc/result.c @@ -63,7 +63,7 @@ static char *text[ISC_R_NRESULTS] = { "ran out of space", /* 19 */ "operation canceled", /* 20 */ "sending events is not allowed", /* 21 */ - "task is shutting down", /* 22 */ + "shutting down", /* 22 */ "not found", /* 23 */ "unexpected end of input", /* 24 */ "failure", /* 25 */ diff --git a/lib/isc/task.c b/lib/isc/task.c index b34b29a0a7..9a07966a8d 100644 --- a/lib/isc/task.c +++ b/lib/isc/task.c @@ -734,7 +734,7 @@ isc_task_onshutdown(isc_task_t *task, isc_taskaction_t action, void *arg) { result = ISC_R_TASKDONE; } else if (TASK_SHUTTINGDOWN(task)) { disallowed = ISC_TRUE; - result = ISC_R_TASKSHUTTINGDOWN; + result = ISC_R_SHUTTINGDOWN; } else ENQUEUE(task->on_shutdown, event, link); UNLOCK(&task->lock);