[rbldnsd] Warning: possible danger of using rbldnsd, and upcoming
data format change
David Landgren
david at landgren.net
Wed Jun 9 18:33:58 MSD 2004
Matthew Sullivan wrote:
> David Landgren wrote:
[...]
>> Having an end-of-file marker on the last line of the file is perfect
>> for this.
>>
>> One should always be wary of encumbering an application with
>> unnecessary cruft to solve a (non-)problem that should be addressed by
>> basic rules of hygiene.
>
>
>
> EOF will not help you then have a race condition where the daemon opens
> for reading, and something opens for writing...
Not relevant. The file is never opened for writing.
At the worst, rbldnsd will be holding the last remaining reference count
to a file that can no longer be access from the filesystem directory
tree, but rbldnsd *will* be able to read it in its entirety.
And even then rbldnsd will be running with stale data for one minute,
until it stats the file, notices that it's been updated and reloads it.
David
More information about the rbldnsd
mailing list