From: Manoj Kasichainula Date: Tue, 29 Jun 1999 02:49:29 +0000 (+0000) Subject: Change method of checking for active FDs after poll() in the pthread X-Git-Tag: 1.3.7~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34f01e370911e771bf826c59c4e5c22df41bf78b;p=thirdparty%2Fapache%2Fhttpd.git Change method of checking for active FDs after poll() in the pthread MPM. The new method doesn't require any changes to the listen abstraction. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83394 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/ap_listen.h b/include/ap_listen.h index 8e7b7a73b82..600f6fca28d 100644 --- a/include/ap_listen.h +++ b/include/ap_listen.h @@ -64,7 +64,6 @@ struct ap_listen_rec { struct sockaddr_in local_addr; /* local IP address and port */ /* TODO: replace the fd with APR stuff */ int fd; - int index; /* index into pollfd array */ /* more stuff here, like which protocol is bound to the port */ }; diff --git a/server/listen.c b/server/listen.c index 6671137f060..9f7c121b734 100644 --- a/server/listen.c +++ b/server/listen.c @@ -182,7 +182,6 @@ static void alloc_listener(struct sockaddr_in *local_addr) new = malloc(sizeof(ap_listen_rec)); new->local_addr = *local_addr; new->fd = -1; - new->index = -1; new->next = ap_listeners; ap_listeners = new; }