httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/standard mod_cgid.c
Date Tue, 12 Sep 2000 14:48:49 GMT
trawick     00/09/12 07:48:49

  Modified:    src/modules/standard mod_cgid.c
  Log:
  Explictly close the AF_UNIX socket to the cgid child after nph cgis too.
  (Yeah, it got closed during pool cleanup, but it is more understandable if
  it is closed the same way for nph and !nph cgis.)
  
  Revision  Changes    Path
  1.40      +3 -2      apache-2.0/src/modules/standard/mod_cgid.c
  
  Index: mod_cgid.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_cgid.c,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- mod_cgid.c	2000/09/11 21:37:27	1.39
  +++ mod_cgid.c	2000/09/12 14:48:49	1.40
  @@ -1016,10 +1016,9 @@
               AP_BRIGADE_INSERT_TAIL(bb, b);
               ap_pass_brigade(r->filters, bb);
           } 
  -        apr_close(tempsock); 
       } 
   
  -    if (tempsock && nph) { 
  +    if (nph) {
           bb = ap_brigade_create(r->pool);
           b = ap_bucket_create_pipe(tempsock);
           AP_BRIGADE_INSERT_TAIL(bb, b);
  @@ -1027,6 +1026,8 @@
           AP_BRIGADE_INSERT_TAIL(bb, b);
           ap_pass_brigade(r->filters, bb);
       } 
  +
  +    apr_close(tempsock);
   
       return OK; /* NOT r->status, even if it has changed. */ 
   } 
  
  
  

Mime
View raw message