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 mpm_winnt.c
Date Thu, 04 Apr 2002 23:32:36 GMT
wrowe       02/04/04 15:32:36

  Modified:    server/mpm/winnt mpm_winnt.c
  Log:
    Race condition one ... we were occasionally escaping all the way out to
    WSATerminate() before this thread picked up it's sleepy head to discover
    the world was gone beneath it on 1GHz+ CPU WinXP configurations.
  
  Revision  Changes    Path
  1.256     +7 -0      httpd-2.0/server/mpm/winnt/mpm_winnt.c
  
  Index: mpm_winnt.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/winnt/mpm_winnt.c,v
  retrieving revision 1.255
  retrieving revision 1.256
  diff -u -r1.255 -r1.256
  --- mpm_winnt.c	2 Apr 2002 14:48:54 -0000	1.255
  +++ mpm_winnt.c	4 Apr 2002 23:32:36 -0000	1.256
  @@ -961,6 +961,13 @@
               WaitForSingleObject(pCompContext->Overlapped.hEvent, INFINITE);
           }
   
  +        /* ### There is a race condition here.  The mainline may hit 
  +         * WSATerminate before this thread reawakens.  Look First.
  +         */
  +        if (shutdown_in_progress) {
  +            break;
  +        }
  +
           /* Inherit the listen socket settings. Required for 
            * shutdown() to work 
            */
  
  
  

Mime
View raw message