SOURCES: httpd-2.0.48-metuxmpm-r8.patch - put missing apr_poll_rev...

arekm arekm at pld-linux.org
Mon Dec 12 10:08:06 CET 2005


Author: arekm                        Date: Mon Dec 12 09:08:06 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- put missing apr_poll_revents_get() implementation from older apr 0.9

---- Files affected:
SOURCES:
   httpd-2.0.48-metuxmpm-r8.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/httpd-2.0.48-metuxmpm-r8.patch
diff -u SOURCES/httpd-2.0.48-metuxmpm-r8.patch:1.2 SOURCES/httpd-2.0.48-metuxmpm-r8.patch:1.3
--- SOURCES/httpd-2.0.48-metuxmpm-r8.patch:1.2	Fri Dec  2 22:37:10 2005
+++ SOURCES/httpd-2.0.48-metuxmpm-r8.patch	Mon Dec 12 10:08:01 2005
@@ -1,6 +1,6 @@
 diff -urN httpd-2.2.0.org/server/mpm/config.m4 httpd-2.2.0/server/mpm/config.m4
 --- httpd-2.2.0.org/server/mpm/config.m4	2005-10-30 18:05:26.000000000 +0100
-+++ httpd-2.2.0/server/mpm/config.m4	2005-12-02 22:06:33.105676750 +0100
++++ httpd-2.2.0/server/mpm/config.m4	2005-12-12 11:37:00.900963000 +0100
 @@ -1,7 +1,7 @@
  AC_MSG_CHECKING(which MPM to use)
  AC_ARG_WITH(mpm,
@@ -30,7 +30,7 @@
          return 1
 diff -urN httpd-2.2.0.org/server/mpm/experimental/metuxmpm/config5.m4 httpd-2.2.0/server/mpm/experimental/metuxmpm/config5.m4
 --- httpd-2.2.0.org/server/mpm/experimental/metuxmpm/config5.m4	1970-01-01 01:00:00.000000000 +0100
-+++ httpd-2.2.0/server/mpm/experimental/metuxmpm/config5.m4	2005-12-02 22:05:16.484888250 +0100
++++ httpd-2.2.0/server/mpm/experimental/metuxmpm/config5.m4	2005-12-12 11:37:00.900963000 +0100
 @@ -0,0 +1,6 @@
 +dnl ## XXX - Need a more thorough check of the proper flags to use
 +
@@ -40,7 +40,7 @@
 +fi
 diff -urN httpd-2.2.0.org/server/mpm/experimental/metuxmpm/Makefile.in httpd-2.2.0/server/mpm/experimental/metuxmpm/Makefile.in
 --- httpd-2.2.0.org/server/mpm/experimental/metuxmpm/Makefile.in	1970-01-01 01:00:00.000000000 +0100
-+++ httpd-2.2.0/server/mpm/experimental/metuxmpm/Makefile.in	2005-12-02 22:05:16.480888000 +0100
++++ httpd-2.2.0/server/mpm/experimental/metuxmpm/Makefile.in	2005-12-12 11:37:00.900963000 +0100
 @@ -0,0 +1,5 @@
 +
 +LTLIBRARY_NAME    = libmetuxmpm.la
@@ -49,8 +49,8 @@
 +include $(top_srcdir)/build/ltlib.mk
 diff -urN httpd-2.2.0.org/server/mpm/experimental/metuxmpm/metuxmpm.c httpd-2.2.0/server/mpm/experimental/metuxmpm/metuxmpm.c
 --- httpd-2.2.0.org/server/mpm/experimental/metuxmpm/metuxmpm.c	1970-01-01 01:00:00.000000000 +0100
-+++ httpd-2.2.0/server/mpm/experimental/metuxmpm/metuxmpm.c	2005-12-02 22:35:32.190362750 +0100
-@@ -0,0 +1,2599 @@
++++ httpd-2.2.0/server/mpm/experimental/metuxmpm/metuxmpm.c	2005-12-12 11:35:35.000000000 +0100
+@@ -0,0 +1,2627 @@
 +/* ====================================================================
 + * The Apache Software License, Version 1.1
 + *
@@ -418,6 +418,34 @@
 +	_DBG("omitted unlocking thread_accept_mutex",0);
 +
 +#endif
++
++
++static apr_pollfd_t *find_poll_sock(apr_pollfd_t *aprset, apr_socket_t *sock)
++{
++    apr_pollfd_t *curr = aprset;
++
++    while (curr->desc.s != sock) {
++        if (curr->desc_type == APR_POLL_LASTDESC) {
++            return NULL;
++        }
++        curr++;
++    }
++
++    return curr;
++}
++
++static apr_status_t apr_poll_revents_get(apr_int16_t *event, apr_socket_t *sock, apr_pollfd_t *aprset)
++{
++    apr_pollfd_t *curr = find_poll_sock(aprset, sock);
++    if (curr == NULL) {
++        return APR_NOTFOUND;
++    }
++
++    (*event) = curr->rtnevents;
++    return APR_SUCCESS;
++}
++
++
 +/* == Keep track of the number of worker threads currently active == */
 +static int worker_thread_count = 0;
 +static apr_thread_mutex_t *worker_thread_count_mutex;
@@ -2652,7 +2680,7 @@
 +
 diff -urN httpd-2.2.0.org/server/mpm/experimental/metuxmpm/mpm_default.h httpd-2.2.0/server/mpm/experimental/metuxmpm/mpm_default.h
 --- httpd-2.2.0.org/server/mpm/experimental/metuxmpm/mpm_default.h	1970-01-01 01:00:00.000000000 +0100
-+++ httpd-2.2.0/server/mpm/experimental/metuxmpm/mpm_default.h	2005-12-02 22:05:16.488888500 +0100
++++ httpd-2.2.0/server/mpm/experimental/metuxmpm/mpm_default.h	2005-12-12 11:37:00.910963000 +0100
 @@ -0,0 +1,115 @@
 +/* ====================================================================
 + * The Apache Software License, Version 1.1
@@ -2771,7 +2799,7 @@
 +#endif /* AP_MPM_DEFAULT_H */
 diff -urN httpd-2.2.0.org/server/mpm/experimental/metuxmpm/mpm.h httpd-2.2.0/server/mpm/experimental/metuxmpm/mpm.h
 --- httpd-2.2.0.org/server/mpm/experimental/metuxmpm/mpm.h	1970-01-01 01:00:00.000000000 +0100
-+++ httpd-2.2.0/server/mpm/experimental/metuxmpm/mpm.h	2005-12-02 22:05:16.484888250 +0100
++++ httpd-2.2.0/server/mpm/experimental/metuxmpm/mpm.h	2005-12-12 11:37:00.910963000 +0100
 @@ -0,0 +1,100 @@
 +/* ====================================================================
 + * The Apache Software License, Version 1.1
@@ -2875,7 +2903,7 @@
 +#endif /* APACHE_MPM_METUXMPM_H */
 diff -urN httpd-2.2.0.org/srclib/apr/network_io/unix/sockets.c httpd-2.2.0/srclib/apr/network_io/unix/sockets.c
 --- httpd-2.2.0.org/srclib/apr/network_io/unix/sockets.c	2005-09-09 10:21:17.000000000 +0200
-+++ httpd-2.2.0/srclib/apr/network_io/unix/sockets.c	2005-12-02 22:05:16.488888500 +0100
++++ httpd-2.2.0/srclib/apr/network_io/unix/sockets.c	2005-12-12 11:37:00.910963000 +0100
 @@ -416,7 +416,36 @@
          set_socket_vars(*sock, APR_INET, SOCK_STREAM, 0);
          (*sock)->timeout = -1;
@@ -2914,4 +2942,3 @@
      (*sock)->remote_addr_unknown = 1;
      (*sock)->socketdes = *thesock;
      return APR_SUCCESS;
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/httpd-2.0.48-metuxmpm-r8.patch?r1=1.2&r2=1.3&f=u




More information about the pld-cvs-commit mailing list