httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <>
Subject Re: bad effect of opening the error log late
Date Mon, 23 Sep 1996 05:19:13 GMT
On Thu, 12 Sep 1996, Mark Brown wrote:
> On some unixes, fopen(path, "a") seeks to the end-of-file
> rather than opening the file in O_APPEND mode.  SunOS
> seems to have this affliction.
> This doesn't work if another process opens the same file
> for append, as opposed to sharing the file descriptor.
> Because mod_fastcgi starts its process manager process from a
> module init proc, and the error log isn't open at the time
> that module init procs are called, mod_fastcgi is being bitten by
> this problem.
> Either the error log should be opened before the module
> init procs are called, or pfopen should work around the problem by
> doing the correct open (with O_APPEND) and then calling fdopen.

Didn't see any comment on this - the error log should be opened as early as
possible, in my opinion, so I'd go with the first solution.



View raw message