[fpc-pascal] Configuration file handling

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Fri Feb 15 23:54:00 CET 2013


If multiple, related, programs running on unix (Linux, Solaris etc.) 
refer to the same configuration file accessed via a TIniFile, is there 
any recommended "good practice" to ensure that they don't try to update 
it simultaneously?

In the case that I'm thinking of, I don't anticipate e.g. multiple 
logins trying to write setup information at the same time. The more 
risky case is if there are e.g. multiple daemons or apps trying to save 
state when a UPS signals imminent shutdown.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list