Hi list,<div><br></div><div>Currently rlm_exec has a hardcoded timeout of 10s when waiting for termination of the executed command.</div><div>We have a case where this is is not enough and I'd like to have it configurable.</div>
<div><br></div><div>I changed the following:</div><div><div>A new timeout argument is added to exec_program:</div><div><br></div><div> int radius_exec_program(const char *cmd, REQUEST *request,</div><div>                        int exec_wait,</div>
<div>+                       int timeout,</div><div>                        ...);</div></div><div><br></div><div>In all other invocations of radius_exe_program where there's no configuration option the following constant is used:</div>
<div><div>+#define RADIUS_EXEC_DEFAULT_TIMEOUT 10</div></div><div><br></div><div>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.</div><div><br>
</div><div>Any comments?</div><div><br></div><div>btw: I'll send the patch as a separate mail.</div><div><br></div><div>Philipp</div>