rlm_detail bug when "locking = yes"
Nicolas Baradakis
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
> 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.
BTW if you remove the close() line 293 you're leaking one file descriptor
each time the lock fails.
--
Nicolas Baradakis
More information about the Freeradius-Users
mailing list