]> granicus.if.org Git - apache/commitdiff
as Bill did with threaded, don't let a child process return to parent code
authorJeff Trawick <trawick@apache.org>
Thu, 5 Apr 2001 17:03:13 +0000 (17:03 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 5 Apr 2001 17:03:13 +0000 (17:03 +0000)
when make_child() returns

fix a bad type for the len parm to apr_bucket_read()

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

server/mpm/experimental/perchild/perchild.c
server/mpm/perchild/perchild.c

index 2a7092f59375e8f552732c04dd3aed1721efad23..edf3083ab4540462c948ddcf5a80ff404401ba3c 100644 (file)
@@ -979,8 +979,7 @@ static int make_child(server_rec *s, int slot)
         apr_signal(SIGTERM, just_die);
        */
         child_main(slot);
-
-       return 0;
+        clean_child_exit(0);
     }
     /* else */
     ap_child_table[slot].pid = pid;
@@ -1356,7 +1355,7 @@ static int pass_request(request_rec *r)
                             ap_get_module_config(r->server->module_config, 
                                                  &mpm_perchild_module);
     char *foo;
-    int len;
+    apr_size_t len;
 
     apr_pool_userdata_get((void **)&foo, "PERCHILD_BUFFER", r->connection->pool);
     len = strlen(foo);
index 2a7092f59375e8f552732c04dd3aed1721efad23..edf3083ab4540462c948ddcf5a80ff404401ba3c 100644 (file)
@@ -979,8 +979,7 @@ static int make_child(server_rec *s, int slot)
         apr_signal(SIGTERM, just_die);
        */
         child_main(slot);
-
-       return 0;
+        clean_child_exit(0);
     }
     /* else */
     ap_child_table[slot].pid = pid;
@@ -1356,7 +1355,7 @@ static int pass_request(request_rec *r)
                             ap_get_module_config(r->server->module_config, 
                                                  &mpm_perchild_module);
     char *foo;
-    int len;
+    apr_size_t len;
 
     apr_pool_userdata_get((void **)&foo, "PERCHILD_BUFFER", r->connection->pool);
     len = strlen(foo);