bjh 99/06/06 00:33:57
Modified: apr/file_io/os2 pipe.c Log: Cleanups need to be registered for both handles to a pipe. Revision Changes Path 1.2 +4 -0 apache-apr/apr/file_io/os2/pipe.c Index: pipe.c =================================================================== RCS file: /home/cvs/apache-apr/apr/file_io/os2/pipe.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- pipe.c 1999/06/04 13:13:18 1.1 +++ pipe.c 1999/06/06 07:33:56 1.2 @@ -74,11 +74,15 @@ (*in)->cntxt = cont; (*in)->filedes = filedes[0]; (*in)->fname = ap_pstrdup(cont, "PIPE"); + (*in)->isopen = TRUE; + ap_register_cleanup(cont, *in, file_cleanup, NULL); (*out) = (struct file_t *)ap_palloc(cont, sizeof(struct file_t)); (*out)->cntxt = cont; (*out)->filedes = filedes[1]; (*out)->fname = ap_pstrdup(cont, "PIPE"); + (*out)->isopen = TRUE; + ap_register_cleanup(cont, *out, file_cleanup, NULL); return APR_SUCCESS; }