Commit e485d164 authored by Bob Halley's avatar Bob Halley
Browse files

name tasks

parent 08af8bf5
......@@ -839,6 +839,7 @@ client_create(ns_clientmgr_t *manager,
&client->task);
if (result != ISC_R_SUCCESS)
goto cleanup_client;
isc_task_setname(client->task, "client", client);
result = isc_task_onshutdown(client->task, client_shutdown, client);
if (result != ISC_R_SUCCESS)
goto cleanup_task;
......
......@@ -193,6 +193,7 @@ ns_interface_create(ns_interfacemgr_t *mgr, isc_sockaddr_t *addr,
isc_result_totext(result));
goto task_create_failure;
}
isc_task_setname(ifp->task, "ifp", ifp);
ifp->udpsocket = NULL;
ifp->udpdispatch = NULL;
......
......@@ -744,6 +744,7 @@ ns_server_create(isc_mem_t *mctx, ns_server_t **serverp) {
*/
CHECKFATAL(isc_task_create(ns_g_taskmgr, ns_g_mctx, 0, &server->task),
"creating server task");
isc_task_setname(server->task, "server", server);
CHECKFATAL(isc_task_onshutdown(server->task, shutdown_server, server),
"isc_task_onshutdown");
CHECKFATAL(isc_app_onrun(ns_g_mctx, server->task, run_server, server),
......
......@@ -2223,6 +2223,7 @@ dns_adb_create(isc_mem_t *mem, dns_view_t *view, isc_timermgr_t *timermgr,
result = isc_task_create(adb->taskmgr, adb->mctx, 0, &adb->task);
if (result != ISC_R_SUCCESS)
goto fail3;
isc_task_setname(adb->task, "ADB", adb);
/*
* XXXMLG When this is changed to be a config file option,
*/
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: cache.c,v 1.10 2000/01/21 02:49:07 halley Exp $ */
/* $Id: cache.c,v 1.11 2000/01/25 19:28:59 halley Exp $ */
#include <config.h>
#include <limits.h>
......@@ -327,6 +327,7 @@ cache_cleaner_init(dns_cache_t *cache, isc_taskmgr_t *taskmgr,
goto cleanup_dbiterator;
}
cleaner->cache->live_tasks++;
isc_task_setname(cleaner->task, "cachecleaner", cleaner);
result = isc_task_onshutdown(cleaner->task,
cleaner_shutdown_action, cache);
......
......@@ -300,6 +300,7 @@ dns_view_createresolver(dns_view_t *view,
result = isc_task_create(taskmgr, view->mctx, 0, &view->task);
if (result != ISC_R_SUCCESS)
return (result);
isc_task_setname(view->task, "view", view);
result = dns_resolver_create(view, taskmgr, ntasks, socketmgr,
timermgr, dispatch, &view->resolver);
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: xfrin.c,v 1.37 2000/01/17 23:54:05 gson Exp $ */
/* $Id: xfrin.c,v 1.38 2000/01/25 19:28:59 halley Exp $ */
#include <config.h>
......@@ -513,6 +513,7 @@ dns_xfrin_start(dns_zone_t *zone, isc_sockaddr_t *master,
task = NULL;
CHECK(isc_task_create(taskmgr, mctx, 0, &task));
isc_task_setname(task, "xfrin", zone);
if (db == NULL) {
xfrin_log1(ISC_LOG_INFO, zonename, master,
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: zone.c,v 1.61 2000/01/24 23:10:19 gson Exp $ */
/* $Id: zone.c,v 1.62 2000/01/25 19:29:00 halley Exp $ */
#include <config.h>
......@@ -2994,6 +2994,7 @@ dns_zonemgr_create(isc_mem_t *mctx, isc_taskmgr_t *taskmgr,
result = isc_task_create(taskmgr, mctx, 1, &zmgr->task);
if (result != ISC_R_SUCCESS)
goto failure;
isc_task_setname(zmgr->task, "zmgr", zmgr);
*zmgrp = zmgr;
return (ISC_R_SUCCESS);
......
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