rlm_detail bug when "locking = yes"
nbk at sitadelle.com
Tue Jun 20 11:58:34 CEST 2006
Michael Chernyakhovsky wrote:
> open() executed once. but while we failed to get lock at first try,
> close(outfd) executed and all the subsequent attempts to lock file
> 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.
BTW if you remove the close() line 293 you're leaking one file descriptor
each time the lock fails.
More information about the Freeradius-Users