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 Fri, 19 Apr 2002 17:51:32 GMT
wrowe       02/04/19 10:51:32

  Modified:    server/mpm/winnt mpm_winnt.c
  Log:
    SOCKETs are HANDLEs, but they type mismatch.  This fix has now been
    verified by the vast majority of folks complaining about the "Not a
    handle" failures in WSADuplicateHandle, later in the code flow.
  
  Revision  Changes    Path
  1.266     +1 -1      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.265
  retrieving revision 1.266
  diff -u -r1.265 -r1.266
  --- mpm_winnt.c	17 Apr 2002 16:39:12 -0000	1.265
  +++ mpm_winnt.c	19 Apr 2002 17:51:31 -0000	1.266
  @@ -549,7 +549,7 @@
                * problem by not altering the handle identifier.  But this won't
                * work on 9x - it's unsupported.
                */
  -            if (!SetHandleInformation(nsd, HANDLE_FLAG_INHERIT, 0)) {
  +            if (!SetHandleInformation((HANDLE)nsd, HANDLE_FLAG_INHERIT, 0)) {
                   ap_log_error(APLOG_MARK, APLOG_ERR, apr_get_os_error(), ap_server_conf,
                                "set_listeners_noninheritable: SetHandleInformation failed.");
               }
  
  
  

Mime
View raw message