From e7af0813834ee533e94c8f22c918c0e5113d500b Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Tue, 26 Sep 2000 18:26:20 +0000 Subject: [PATCH] removed unused task --- bin/named/include/named/interfacemgr.h | 3 +-- bin/named/interfacemgr.c | 19 +------------------ 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/bin/named/include/named/interfacemgr.h b/bin/named/include/named/interfacemgr.h index 71d07f330d..727e052530 100644 --- a/bin/named/include/named/interfacemgr.h +++ b/bin/named/include/named/interfacemgr.h @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: interfacemgr.h,v 1.20 2000/09/22 00:13:07 gson Exp $ */ +/* $Id: interfacemgr.h,v 1.21 2000/09/26 18:26:20 gson Exp $ */ #ifndef NAMED_INTERFACEMGR_H #define NAMED_INTERFACEMGR_H 1 @@ -75,7 +75,6 @@ struct ns_interface { char name[32]; /* Null terminated. */ dns_dispatch_t * udpdispatch; /* UDP dispatcher. */ isc_socket_t * tcpsocket; /* TCP socket. */ - isc_task_t * task; int ntcptarget; /* Desired number of concurrent TCP accepts */ int ntcpcurrent; /* Current ditto, locked */ diff --git a/bin/named/interfacemgr.c b/bin/named/interfacemgr.c index ce84ac0e44..0f5fc4ee63 100644 --- a/bin/named/interfacemgr.c +++ b/bin/named/interfacemgr.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: interfacemgr.c,v 1.50 2000/09/22 00:13:04 gson Exp $ */ +/* $Id: interfacemgr.c,v 1.51 2000/09/26 18:26:18 gson Exp $ */ #include @@ -190,19 +190,6 @@ ns_interface_create(ns_interfacemgr_t *mgr, isc_sockaddr_t *addr, if (result != ISC_R_SUCCESS) goto lock_create_failure; - /* - * Create a task. - */ - ifp->task = NULL; - result = isc_task_create(mgr->taskmgr, 0, &ifp->task); - if (result != ISC_R_SUCCESS) { - isc_log_write(IFMGR_COMMON_LOGARGS, ISC_LOG_ERROR, - "isc_task_create() failed: %s", - isc_result_totext(result)); - goto task_create_failure; - } - isc_task_setname(ifp->task, "ifp", ifp); - result = ns_clientmgr_create(mgr->mctx, mgr->taskmgr, ns_g_timermgr, &ifp->clientmgr); @@ -237,8 +224,6 @@ ns_interface_create(ns_interfacemgr_t *mgr, isc_sockaddr_t *addr, return (ISC_R_SUCCESS); clientmgr_create_failure: - isc_task_destroy(&ifp->task); - task_create_failure: DESTROYLOCK(&ifp->lock); lock_create_failure: ifp->magic = 0; @@ -392,8 +377,6 @@ ns_interface_destroy(ns_interface_t *ifp) { dns_dispatch_detach(&ifp->udpdispatch); if (ifp->tcpsocket != NULL) isc_socket_detach(&ifp->tcpsocket); - if (ifp->task != NULL) - isc_task_detach(&ifp->task); DESTROYLOCK(&ifp->lock);