so that the it saves an fr_strerror(), and all callers use
RPEDEBUG() to describe the error. This gives a consistent
behavior
request_t *request = exec->request;
if (exec->stdout_fd < 0) {
- REDEBUG("Timeout waiting for program to exit - killing it and failing the request");
+ fr_strerror_const("Timeout waiting for program to exit - killing it and failing the request");
} else {
- REDEBUG("Timeout running program - killing it and failing the request");
+ fr_strerror_const("Timeout running program - killing it and failing the request");
}
exec->failed = true;
false,
(state->out != NULL), state,
state->args.exec.timeout) < 0) {
+ RPEDEBUG("Failed executing program");
*p_result = RLM_MODULE_FAIL;
return UNLANG_ACTION_CALCULATE_RESULT;
}