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

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