mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 08:05:21 +00:00
Generalize ISC_R_TASKSHUTTINGDOWN to ISC_R_SHUTTINGDOWN
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user