MCPcopy Create free account
hub / github.com/apache/httpd / show_mpm_settings

Function show_mpm_settings

server/main.c:55–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 */
54
55static void show_mpm_settings(void)
56{
57 int mpm_query_info;
58 apr_status_t retval;
59
60 printf("Server MPM: %s\n", ap_show_mpm());
61
62 retval = ap_mpm_query(AP_MPMQ_IS_THREADED, &mpm_query_info);
63
64 if (retval == APR_SUCCESS) {
65 printf(" threaded: ");
66
67 if (mpm_query_info == AP_MPMQ_DYNAMIC) {
68 printf("yes (variable thread count)\n");
69 }
70 else if (mpm_query_info == AP_MPMQ_STATIC) {
71 printf("yes (fixed thread count)\n");
72 }
73 else {
74 printf("no\n");
75 }
76 }
77
78 retval = ap_mpm_query(AP_MPMQ_IS_FORKED, &mpm_query_info);
79
80 if (retval == APR_SUCCESS) {
81 printf(" forked: ");
82
83 if (mpm_query_info == AP_MPMQ_DYNAMIC) {
84 printf("yes (variable process count)\n");
85 }
86 else if (mpm_query_info == AP_MPMQ_STATIC) {
87 printf("yes (fixed process count)\n");
88 }
89 else {
90 printf("no\n");
91 }
92 }
93}
94
95static void show_compile_settings(void)
96{

Callers 1

show_compile_settingsFunction · 0.85

Calls 2

ap_show_mpmFunction · 0.85
ap_mpm_queryFunction · 0.85

Tested by

no test coverage detected