2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

removed unused task

This commit is contained in:
Andreas Gustafsson 2000-09-26 18:26:20 +00:00
parent ff7e6f2791
commit e7af081383
2 changed files with 2 additions and 20 deletions

View 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 */

View 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);