On Fri, Oct 16, 2009 at 11:17:17AM +0200, Mladen Turk wrote: > each invocation to apr_file_open_stdout creates a new apr_file_t so > each fd->filedes has a value of STDOUT_FILENO. > This is the same as calling: > close(1); > close(1);
Oh, good point. This is rather horrible :(. I'm not sure what can be done about it, we can't change apr_file_open_stdout() to do a dup() internally, since that would break existing apps. Regards, Joe
