[fpc-pascal] Configuration file handling

Sven Barth pascaldragon at googlemail.com
Sat Feb 16 09:09:02 CET 2013


On 15.02.2013 23:54, Mark Morgan Lloyd wrote:
> 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.
>

This might be for Windows, but I think this applies here as well: 
http://blogs.msdn.com/b/oldnewthing/archive/2004/11/22/267890.aspx

Regards,
Sven



More information about the fpc-pascal mailing list