This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix multiple minor tzset glitches [BZ #24004]


* Paul Eggert:

> On 3/14/19 7:10 AM, Florian Weimer wrote:
>> * Paul Eggert:
>>
>>> Yes, and it would be good to add a way to control polling of /etc files,
>>> and whatever method is used to control polling of /etc/nsswitch.conf
>>> etc. could also be used to control polling of /etc/localtime.
>> I think this should be a configuration file.  We can use a shared
>> mapping (or use /etc/ld.so.cache) to make up-to-date checks really,
>> really cheap.  But I think we should apply this mechanism only to files
>> where the system administrator has enabled this feature.
>
> Will the configuration file will have also an entry to control whether
> the configuration file itself is polled? :-)

With the mapped file, there is no file polling as such, just a few
memory loads.  The cost is that the system administrator needs to run a
command after updating any of the covered configuration files, which is
why this has to be optional (and opt-in per configuration file).  There
probably aren't that many configuration files where this is needed.

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]