httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/server/mpm/winnt service.c
Date Wed, 13 Feb 2002 03:33:34 GMT
wrowe       02/02/12 19:33:34

  Modified:    server/mpm/winnt service.c
  Log:
    The final commit to achieve a quality release.  We cannot use CreateThread
    on Win32 when using the clib; msvcrt has its own initialization and
    destruction, so it needs its own turn.  _createthreadex is the same but
    different - it's implemented by msvcrt and causes all the appropriate
    setup and teardown to occur.
  
  Revision  Changes    Path
  1.44      +5 -5      httpd-2.0/server/mpm/winnt/service.c
  
  Index: service.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/winnt/service.c,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- service.c	12 Feb 2002 17:32:06 -0000	1.43
  +++ service.c	13 Feb 2002 03:33:34 -0000	1.44
  @@ -642,8 +642,8 @@
           {
               CloseHandle(hPipeWrite);
               hPipeWrite = hDup;
  -            thread = CreateThread(NULL, 0, service_stderr_thread, 
  -                                  (LPVOID) hPipeRead, 0, &threadid);
  +            thread = (HANDLE) _beginthreadex(NULL, 0, service_stderr_thread, 
  +                                             (LPVOID) hPipeRead, 0, &threadid);
               if (thread)
               {
                   FILE *fl, flip;
  @@ -875,7 +875,7 @@
           globdat.service_init = CreateEvent(NULL, FALSE, FALSE, NULL);
           globdat.service_term = CreateEvent(NULL, FALSE, FALSE, NULL);
           if (globdat.service_init)
  -            globdat.service_thread = CreateThread(NULL, 0, 
  +            globdat.service_thread = (HANDLE) _beginthreadex(NULL, 0, 
                                                     service_nt_dispatch_thread, 
                                                     NULL, 0, 
                                                     &globdat.service_thread_id);
  @@ -887,9 +887,9 @@
   
           globdat.service_init = CreateEvent(NULL, FALSE, FALSE, NULL);
           if (globdat.service_init)
  -            globdat.service_thread = CreateThread(NULL, 0,
  +            globdat.service_thread = (HANDLE) _beginthreadex(NULL, 0,
                                                     monitor_service_9x_thread, 
  -                                                  (LPVOID) mpm_service_name, 0, 
  +                                                  (LPVOID) mpm_service_name, 0,
                                                     &globdat.service_thread_id);
       }
   
  
  
  

Mime
View raw message