]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
removed unused task
authorAndreas Gustafsson <source@isc.org>
Tue, 26 Sep 2000 18:26:20 +0000 (18:26 +0000)
committerAndreas Gustafsson <source@isc.org>
Tue, 26 Sep 2000 18:26:20 +0000 (18:26 +0000)
bin/named/include/named/interfacemgr.h
bin/named/interfacemgr.c

index 71d07f330d239428b92ef2e0990ffdaac05c401c..727e052530fdc5897771bad95e675fdd8e220df4 100644 (file)
@@ -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 */
index ce84ac0e44cb0bc17e25d966f12c19f2502322e8..0f5fc4ee632c40b03124aaf694a46e50058eb9d6 100644 (file)
@@ -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 <config.h>
 
@@ -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);