]> granicus.if.org Git - apache/commitdiff
* server/mpm/simple/simple_run.c
authorPaul Querna <pquerna@apache.org>
Sun, 28 Jun 2009 08:30:07 +0000 (08:30 +0000)
committerPaul Querna <pquerna@apache.org>
Sun, 28 Jun 2009 08:30:07 +0000 (08:30 +0000)
    (simple_setup_pollcb): If the pollset was created successfully, break out of the loop :)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@789071 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/simple/simple_run.c

index a1864ce671dfdc83c337f7bf865ca5feffcfa3ba..0b3246e54118fc55f1c6360b75c6ae851eba2b72 100644 (file)
@@ -262,6 +262,9 @@ static int simple_setup_pollcb(simple_core_t * sc)
         /* pqXXXXX: make size of pollcb configrable or dynamic */
         rv = apr_pollcb_create_ex(&sc->pollcb, 512,
                                   sc->pool, APR_POLLSET_NODEFAULT, good_methods[i]);
+        if (!rv) {
+            break;
+        }
     }
     if (rv) {
         ap_log_error(APLOG_MARK, APLOG_CRIT, rv, NULL,