]> granicus.if.org Git - apache/commitdiff
The next of several helper threads which do not need a default 1GB stack
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 26 Sep 2008 20:11:27 +0000 (20:11 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 26 Sep 2008 20:11:27 +0000 (20:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@699478 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/service.c

index 96e9bede0406acbc714fa060443a73473a688e7f..9dc3489a55a58b077538619a657d43c654613633 100644 (file)
@@ -728,8 +728,10 @@ apr_status_t mpm_service_to_start(const char **display_name, apr_pool_t *p)
              return APR_EGENERAL;
         }
 
-        globdat.service_thread = CreateThread(NULL, 0, service_nt_dispatch_thread,
-                                              NULL, 0, &globdat.service_thread_id);
+        globdat.service_thread = CreateThread(NULL, 65536,
+                                              service_nt_dispatch_thread,
+                                              NULL, stack_res_flag,
+                                              &globdat.service_thread_id);
     }
     else /* osver.dwPlatformId != VER_PLATFORM_WIN32_NT */
     {
@@ -741,7 +743,8 @@ apr_status_t mpm_service_to_start(const char **display_name, apr_pool_t *p)
             return APR_EGENERAL;
         }
 
-        globdat.service_thread = CreateThread(NULL, 0, monitor_service_9x_thread,
+        globdat.service_thread = CreateThread(NULL, 0,
+                                              monitor_service_9x_thread,
                                               (LPVOID) mpm_service_name, 0,
                                               &globdat.service_thread_id);
     }