On Fri, Nov 17, 2000 at 03:47:50AM +0100, Markus Stumpf wrote:
> Working around the need for a kill -HUP to reread virtualdomains would
> (for performance reasons) imply to have a mechanism to notice changes
> to the cdb (timestamp on file e.g.) and only refresh when changed.
> This however could also be done with a "plain" virtualdomains file,
> except one would save the costs of hashing the file.

For each cdb lookup, the program mmaps the cdb, does a lookup, then
unmaps it. Provided that programs which change the file do so
atomically with rename(), the querying program will never have to
worry about missing data due to updates.

PGP signature

Reply via email to