The following reply was made to PR os-windows/1726; it has been noted by GNATS.
From: Marc Slemko <[EMAIL PROTECTED]>
To: John Hawthorne <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: os-windows/1726: Apache hangs
Date: Fri, 23 Jan 1998 17:23:46 -0700 (MST)
On Fri, 23 Jan 1998, John Hawthorne wrote:
> Hi Marc.
>
> This may indeed be the problem. When will 1.3b4 be available? If it's going
> to be awhile, is there any way I can put in the fix myself?
>
> Thanks for your quick response,
There is no firm date set yet.
You can try the below change:
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);
(cut and pasted and patch probably wouldn't like it; easiest to apply
by hand. The lines with + in front are ones which are added.)