httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@Fujitsu-Siemens.com>
Subject Re: cvs commit: apache-2.0/src CHANGES
Date Wed, 22 Nov 2000 08:06:18 GMT
Wouldn't it make sense to clear the log file BEFORE logging the error?
Chances are that both log files reside on the same file system.

   Martin

>     *) Accomodate an out-of-space condition in the piped logs and the
>        rotatelogs.c code, and no longer churn log processes for this
>        condition.  [Victor J. Orlikowski]
>                if (nLogFD < 0) { [...]
>   +                    nLogFD = nLogFDprev;
>   +                    sprintf(errbuf,
>   +                            "Resetting log file due to error opening "
>   +                            "new log file. %10d messages lost.\n",
>   +                            nMessCount);
>   +                    nWrite = strlen(errbuf);
>   +#ifdef WIN32
>   +                    chsize(nLogFD, 0);
>   +#else
>   +                    ftruncate(nLogFD, 0);
>   +#endif
>   +                    write(nLogFD, errbuf, nWrite);
-- 
<Martin.Kraemer@Fujitsu-Siemens.com>    |       Fujitsu Siemens
       <martin@apache.org>              |   81730  Munich,  Germany

Mime
View raw message