Modified: branches/release_1_9/base/src/registry2.0/registry.tcl (70269 => 70270)
--- branches/release_1_9/base/src/registry2.0/registry.tcl 2010-08-04 07:17:19 UTC (rev 70269)
+++ branches/release_1_9/base/src/registry2.0/registry.tcl 2010-08-04 07:20:13 UTC (rev 70270)
@@ -401,6 +401,10 @@
}
set lockpath [file join ${registry.path} registry .registry.lock]
if {![info exists lockfd]} {
+ if {![file writable [file dirname $lockpath]]} {
+ # skip locking, registry can't be modified anyway
+ return
+ }
set lockfd [::open $lockpath w]
}
if {[catch {flock $lockfd -exclusive -noblock} result]} {