Blame SOURCES/xinetd-2.3.14-many-services.patch

319196
--- xinetd-2.3.14-dist/xinetd/defs.h	2012-01-16 12:20:54.739041678 +0100
319196
+++ xinetd-2.3.14/xinetd/defs.h	2012-01-17 08:06:56.800762230 +0100
319196
@@ -115,8 +115,9 @@ union xsockaddr {
319196
  */
319196
 
319196
 #ifdef HAVE_POLL
319196
-#define INIT_POLLFDS                 1024
319196
-#define MAX_POLLFDS                  8192
319196
+#define INIT_POLLFDS                 4096
319196
+/* FIXME: not used */
319196
+#define MAX_POLLFDS                  16384
319196
 #endif
319196
 
319196
 /*
319196
--- xinetd-2.3.14-dist/xinetd/service.c	2012-01-16 12:20:54.741041678 +0100
319196
+++ xinetd-2.3.14/xinetd/service.c	2012-01-17 08:07:28.872746991 +0100
319196
@@ -343,9 +343,9 @@ status_e svc_activate( struct service *s
319196
        out_of_memory( func );
319196
        return( FAILED );
319196
      }
319196
+     ps.rws.pfd_array = tmp;
319196
      memset(&ps.rws.pfd_array[ps.rws.pfds_last], 0, (ps.rws.pfds_allocated-
319196
        ps.rws.pfds_last)*sizeof(struct pollfd));
319196
-     ps.rws.pfd_array = tmp;
319196
    }
319196
    if ( sp->svc_pfd_index >= 0 )
319196
    {