Google Answers Logo
View Question
 
Q: Perl question: does CONFIG::IniFiles::RewriteConfig lock the *.ini file? ( Answered 4 out of 5 stars,   0 Comments )
Question  
Subject: Perl question: does CONFIG::IniFiles::RewriteConfig lock the *.ini file?
Category: Computers > Programming
Asked by: kentmm-ga
List Price: $15.00
Posted: 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.
Answer  
Subject: Re: Perl question: does CONFIG::IniFiles::RewriteConfig lock the *.ini file?
Answered By: efn-ga on 31 Jul 2006 20:45 PDT
Rated:4 out of 5 stars
 
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:4 out of 5 stars

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy