httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: Question. fopen() in ap_pfopen() background ?
Date Mon, 11 Oct 1999 18:03:02 GMT
On Fri, 8 Oct 1999 saeedt@ix.netcom.com wrote:

> 1) What is the problem with fopen() "-a" and on what platform?

it's probably on some ancient unix.

> 2) Why is fopen() used for opening the error log in 
>    src/main/http_log.c file at open_error_log() function?
>    The buffering performance boost that fopen() provides is very minimal
>    in the case of writing to error log.

for historical reasons (fprintf).

> 3) The Solaris implementation has a problem with any fopen() which
>    opens a file above the 256 file descriptor. HPUX and AIX do not have
>    this problem. This means that some fopen's will fail if there are
> many
>    fd's open on the Solaris platform. Isn't open()/read()/write() a 
>    cleaner implementation for logging ?

yes.

Dean


Mime
View raw message