Re: git-cvsserver & push/commit atomically
- From
Randal L. Schwartz <merlyn@stonehenge.com>
- Date
- Feb 13, 2006, 02:25 UTC
- Message-ID
- <86wtg0j8qr.fsf@blue.stonehenge.com>
- In-Reply-To
- <Pine.LNX.4.63.0602130110590.21465@wbgn013.biozentrum.uni-wuerzburg.de>
>>>>> "Johannes" == Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Johannes> Correct. The filesystem way to lock is to create a lock file and Johannes> fail if it already exists.
Unless NFS has been fixed, that's not an atomic operation over NFS. Might not matter here, but important to note if this is your first time seeing this lock strategy.
-- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!