Commit 0d3119d4 authored by Michael Graff's avatar Michael Graff

Generalize ISC_R_TASKSHUTTINGDOWN to ISC_R_SHUTTINGDOWN

parent bed86971
......@@ -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 */
......
......@@ -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 */
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment