| 53 | */ |
| 54 | |
| 55 | static 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 | |
| 95 | static void show_compile_settings(void) |
| 96 | { |
no test coverage detected