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

Function wd_cmd_watchdog_int

modules/core/mod_watchdog.c:594–612  ·  view source on GitHub ↗

--------------------------------------------------------------------------*/ / WatchdogInterval directive */ / --------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

592/* */
593/*--------------------------------------------------------------------------*/
594static 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/* */

Callers

nothing calls this directly

Calls 2

ap_check_cmd_contextFunction · 0.85

Tested by

no test coverage detected