Bug 52995

Summary: httpd -V does not print the default Mutex
Product: Apache httpd-2 Reporter: Igor Galić <i.galic>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Igor Galić 2012-03-28 13:35:52 UTC
http://httpd.apache.org/docs/current/mod/core.html#mutex claims httpd -V will print the default (optimal) Mutex for this platform, however it does not:

Server version: Apache/2.4.1 (Unix)
Server built:   Mar 27 2012 20:35:35
Server's Module Magic Number: 20120211:0
Server loaded:  APR 1.4.6, APR-UTIL 1.4.1
Compiled using: APR 1.4.6, APR-UTIL 1.4.1
Architecture:   64-bit
Server MPM:     event
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D HTTPD_ROOT="/opt/bw"
 -D SUEXEC_BIN="/opt/bw/bin/suexec"
 -D DEFAULT_PIDLOG="/var/bwlog/apache/logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/bw/apache/mime.types"
 -D SERVER_CONFIG_FILE="/etc/bw/apache/httpd.conf"
Comment 1 Jeff Trawick 2012-03-28 15:56:17 UTC
This is what it is referring to -- APR's default for the current platform.
(Please don't say you want it in an understandable format :) )
Did I miss your point?
Comment 2 Igor Galić 2012-03-29 22:26:29 UTC
I'd suggest we extend the documentation to say:

look for APR_USE_.*?_SERIALIZE

Anyway, those are *two* -- which is the default? The optimal thingy for this platform of mine?
Comment 3 Jeff Trawick 2012-03-30 00:02:56 UTC
>Anyway, those are *two* -- which is the default?
One is the default for cross-process mutexes while the other is the default (and in fact only implementation) for intra-process mutexes.
I doubt that this geeky stuff from -V should really be pointed to by that particular doc...