Re[2]: rlm_detail bug when locking = yes

2006-06-20 Thread Michael Chernyakhovsky
Nicolas wrote: we need close outfd right before return RLM_MODULE_FAIL; at line 236. or get the fixes from CVS head which solve many other problems in rlm_detail. (for example file renamed or unlinked by another program) Everyone will save a considerable amount of time if you could

Re[2]: rlm_detail bug when locking = yes

2006-06-20 Thread Michael Chernyakhovsky
open() executed once. but while we failed to get lock at first try, close(outfd) executed and all the subsequent attempts to lock file fails i comment line 293 out. I don't understand why this helps. We open the file at the beginning of the do..while() loop, so it should be fine. err.

rlm_detail bug when locking = yes

2006-06-16 Thread Michael Chernyakhovsky
hello, everybody. my radius use a rlm_perl module, wich open and write some informations to files. also it use rlm_detail but without locking. 2 days ago i add second rlm_detail to config with option locking = yes. since i got 2 files with corrupted datas which accessed by rlm_perl. i think

Re: rlm_detail bug when locking = yes

2006-06-16 Thread Nicolas Baradakis
Michael Chernyakhovsky wrote: we need close outfd right before return RLM_MODULE_FAIL; at line 236. ... or get the fixes from CVS head which solve many other problems in rlm_detail. (for example file renamed or unlinked by another program) Everyone will save a considerable amount of time if