https://issues.apache.org/bugzilla/show_bug.cgi?id=55072

            Bug ID: 55072
           Summary: ErrorLog doesn't work well when apache shutdown
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: [email protected]
          Reporter: [email protected]

The problem is that if we configured the ErrorLog directive piped with
rotatelog, logs in pool cleanup hook is always missing when we shutdown the
apache server (restart is OK).

    ErrorLog "|/usr/local/apache2/bin/rotatelogs -l
/home/user/log/event.log.%Y-%m-%d 86400"

   If we don't use the rotatelog feature, it works fine.

   ErrorLog "logs/error_log"

   We have tested the latest released apache, the problem always exists.

   The related program is as following:

apr_status_t destory_lock(void *not_used)
   {
    ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, "enter destroy"); // this log
is always missing when shutdown apache
    return APR_SUCCESS;
    }

int filerepair_post_config(apr_pool_t *pconf, apr_pool_t *plog,
                             apr_pool_t *ptemp, server_rec *s){
    apr_pool_cleanup_register(pconf, NULL, destory_lock,
apr_pool_cleanup_null);
       return APR_SUCCESS;

}

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to