ben 97/12/07 13:28:49
Modified: src CHANGES src/main alloc.c Log: Cure filehandle leak in Win32 CGI. PR: 1523 Submitted by: Peter Tillemans <[EMAIL PROTECTED]> Revision Changes Path 1.523 +2 -0 apachen/src/CHANGES Index: CHANGES =================================================================== RCS file: /export/home/cvs/apachen/src/CHANGES,v retrieving revision 1.522 retrieving revision 1.523 diff -u -r1.522 -r1.523 --- CHANGES 1997/11/25 22:00:40 1.522 +++ CHANGES 1997/12/07 21:28:46 1.523 @@ -1,5 +1,7 @@ Changes with Apache 1.3b4 + *) WIN32: Cure file leak in CGIs. [Peter Tillemans <[EMAIL PROTECTED]>] PR#1523 + *) proxy_ftp: the directory listings generated by the proxy ftp module now have a title in which the path components are clickable and allow quick navigation to the clicked-on directory on the currently listed 1.59 +9 -0 apachen/src/main/alloc.c Index: alloc.c =================================================================== RCS file: /export/home/cvs/apachen/src/main/alloc.c,v retrieving revision 1.58 retrieving revision 1.59 diff -u -r1.58 -r1.59 --- alloc.c 1997/11/12 23:22:05 1.58 +++ alloc.c 1997/12/07 21:28:48 1.59 @@ -1318,11 +1318,20 @@ /* restore the original stdin, stdout and stderr */ if (pipe_in) + { dup2(hStdIn, fileno(stdin)); + close(hStdIn); + } if (pipe_out) + { dup2(hStdOut, fileno(stdout)); + close(hStdOut); + } if (pipe_err) + { dup2(hStdErr, fileno(stderr)); + close(hStdErr); + } if (pid) { note_subprocess(p, pid, kill_how);