httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@hyperreal.org>
Subject cvs commit: apache/src alloc.c
Date Fri, 25 Jul 1997 09:41:31 GMT
dgaudet     97/07/25 02:41:30

  Modified:    src       alloc.c
  Log:
  Fix a file descriptor leak introduced by my cgi unbuffering patch.
  
  Revision  Changes    Path
  1.45      +3 -0      apache/src/alloc.c
  
  Index: alloc.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/alloc.c,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- alloc.c	1997/07/24 04:38:07	1.44
  +++ alloc.c	1997/07/25 09:41:29	1.45
  @@ -1314,16 +1314,19 @@
     
       if (pipe_out) {
   	*pipe_out = bcreate(p, B_RD);
  +	note_cleanups_for_fd (p, fd_out);
   	bpushfd(*pipe_out, fd_out, fd_out);
       }
   
       if (pipe_in) {
   	*pipe_in = bcreate(p, B_WR);
  +	note_cleanups_for_fd (p, fd_in);
   	bpushfd(*pipe_in, fd_in, fd_in);
       }
   
       if (pipe_err) {
   	*pipe_err = bcreate(p, B_RD);
  +	note_cleanups_for_fd (p, fd_err);
   	bpushfd(*pipe_err, fd_err, fd_err);
       }
   
  
  
  

Mime
View raw message