https://bz.apache.org/bugzilla/show_bug.cgi?id=59982

            Bug ID: 59982
           Summary: Add log message when apr_global_mutex_lock/unlock
                    fails
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: All
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 34128
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34128&action=edit
Add log message when apr_global_mutex_lock/unlock fails

Function apr_global_mutex_lock/unlock may fail. The majority of calls have
checked the return value and printed log message like the following code
snippet, while the others have not. Those unchecked ones probably need logs too
(see attachment).

/* httpd-2.4.10/modules/cache/mod_cache_socache.c:532:35*/
            apr_status_t status = apr_global_mutex_lock(socache_mutex);
            if (status != APR_SUCCESS) {
                ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r, APLOGNO(02355)
                        "could not acquire lock, ignoring: %s", obj->key);
                apr_pool_destroy(sobj->pool);
                sobj->pool = NULL;
                return DECLINED;
            }

-- 
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