Hi list,
Currently rlm_exec has a hardcoded timeout of 10s when waiting for termination of the executed command.
We have a case where this is is not enough and I'd like to have it configurable.
I changed the following:
A new timeout argument is added to exec_program:
int radius_exec_program(const char *cmd, REQUEST *request,
int exec_wait,
+ int timeout,
...);
In all other invocations of radius_exe_program where there's no configuration option the following constant is used:
+#define RADIUS_EXEC_DEFAULT_TIMEOUT 10
I could have also renamed the exec_wait to timeout and use a special value (e.g. 0) as a timeout to create the same behavior.
Any comments?
btw: I'll send the patch as a separate mail.
Philipp