summaryrefslogtreecommitdiff
path: root/lib/isc/task.c
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2011-02-05 03:14:55 +0000
committerDoug Barton <dougb@FreeBSD.org>2011-02-05 03:14:55 +0000
commitfccc60c828fe78d2bd780145733aec0ab99dc91f (patch)
tree601b0776df11a070020ab894b76fd90e36393936 /lib/isc/task.c
parentf805c4c11684ad447d955512cb705ebc2aba9ef3 (diff)
Notes
Diffstat (limited to 'lib/isc/task.c')
-rw-r--r--lib/isc/task.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/isc/task.c b/lib/isc/task.c
index a630173d9405..5d87f21be39e 100644
--- a/lib/isc/task.c
+++ b/lib/isc/task.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2008, 2010 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: task.c,v 1.107 2008/03/27 23:46:57 tbox Exp $ */
+/* $Id: task.c,v 1.107.120.2 2010-12-03 23:45:47 tbox Exp $ */
/*! \file
* \author Principal Author: Bob Halley
@@ -1292,8 +1292,15 @@ isc_task_endexclusive(isc_task_t *task) {
#endif
}
-#ifdef HAVE_LIBXML2
+isc_boolean_t
+isc_task_exiting(isc_task_t *t) {
+ isc_task_t *task = (isc_task_t *)t;
+
+ REQUIRE(VALID_TASK(task));
+ return (TASK_SHUTTINGDOWN(task));
+}
+#ifdef HAVE_LIBXML2
void
isc_taskmgr_renderxml(isc_taskmgr_t *mgr, xmlTextWriterPtr writer)
{