manoj 99/10/31 19:07:08
Modified: src/lib/apr/file_io/unix pipe.c
Log:
Force ap_create_pipe to properly note that it uses a Unix fd instead of
a FILE pointer. This also makes mod_cgi work properly on Unix.
Revision Changes Path
1.4 +2 -0 apache-2.0/src/lib/apr/file_io/unix/pipe.c
Index: pipe.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/pipe.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -u -r1.3 -r1.4
--- pipe.c 1999/10/06 23:03:47 1.3
+++ pipe.c 1999/11/01 03:07:07 1.4
@@ -81,11 +81,13 @@
(*in) = (struct file_t *)ap_palloc(cont, sizeof(struct file_t));
(*in)->cntxt = cont;
(*in)->filedes = filedes[0];
+ (*in)->buffered = 0;
(*in)->fname = ap_pstrdup(cont, "PIPE");
(*out) = (struct file_t *)ap_palloc(cont, sizeof(struct file_t));
(*out)->cntxt = cont;
(*out)->filedes = filedes[1];
+ (*out)->buffered = 0;
(*out)->fname = ap_pstrdup(cont, "PIPE");
return APR_SUCCESS;