--------------------------------------------------------------------------*/ / WatchdogInterval directive */ / --------------------------------------------------------------------------*/
| 592 | /* */ |
| 593 | /*--------------------------------------------------------------------------*/ |
| 594 | static const char *wd_cmd_watchdog_int(cmd_parms *cmd, void *dummy, |
| 595 | const char *arg) |
| 596 | { |
| 597 | apr_status_t rv; |
| 598 | const char *errs = ap_check_cmd_context(cmd, GLOBAL_ONLY); |
| 599 | |
| 600 | if (errs != NULL) |
| 601 | return errs; |
| 602 | rv = ap_timeout_parameter_parse(arg, &wd_interval, "s"); |
| 603 | |
| 604 | if (rv != APR_SUCCESS) |
| 605 | return "Unparse-able WatchdogInterval setting"; |
| 606 | if (wd_interval < AP_WD_TM_SLICE) { |
| 607 | return apr_psprintf(cmd->pool, "Invalid WatchdogInterval: minimal value %" |
| 608 | APR_TIME_T_FMT "ms", apr_time_as_msec(AP_WD_TM_SLICE)); |
| 609 | } |
| 610 | |
| 611 | return NULL; |
| 612 | } |
| 613 | |
| 614 | /*--------------------------------------------------------------------------*/ |
| 615 | /* */ |
nothing calls this directly
no test coverage detected