Perl question: does CONFIG::IniFiles::RewriteConfig lock the *.ini file?
Category: Computers > Programming
Asked by: kentmm-ga
List Price: $15.00
31 Jul 2006 13:29 PDT
Expires: 30 Aug 2006 13:29 PDT
Question ID: 751209
I am calling RewriteConfig out of the CONFIG::IniFiles module. I could conceivably be doing this from various executables running concurrently. Does RewriteConfig exclusively lock the file for writing such that one process does not read/write from/to a half-written file? I am looking for URL to a definitive answer.
Re: Perl question: does CONFIG::IniFiles::RewriteConfig lock the *.ini file?
Answered By: efn-ga on 31 Jul 2006 20:45 PDT
Hi kentmm, In the documentation on the Config::IniFiles module, in the Bugs section, it says: "No locking is done by [Re]WriteConfig. When writing servers, take care that only the parent ever calls this, and consider making your own backup." So the answer to your question is no, RewriteConfig does not lock the file. The documentation is replicated in multiple places on the Web, including: CPAN http://search.cpan.org/~wadg/Config-IniFiles-2.38/IniFiles.pm#BUGS CPAN, Annotated http://www.annocpan.org/~WADG/Config-IniFiles-2.23/IniFiles.pm manpages.debian.net http://manpages.debian.net/cgi-bin/display_man.cgi?id=64d4d88e45a3d27828843b010bb6c7ef&format=plain --efn
|kentmm-ga rated this answer:|
|There are no comments at this time.|
If you feel that you have found inappropriate content, please let us know by emailing us at firstname.lastname@example.org with the question ID listed above. Thank you.
|Search Google Answers for|