You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2005/10/31 05:36:34 UTC

svn commit: r329734 - /spamassassin/trunk/build/automc/buildbot_ready

Author: jm
Date: Sun Oct 30 20:36:32 2005
New Revision: 329734

URL: http://svn.apache.org/viewcvs?rev=329734&view=rev
Log:
let's try that again

Modified:
    spamassassin/trunk/build/automc/buildbot_ready

Modified: spamassassin/trunk/build/automc/buildbot_ready
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/build/automc/buildbot_ready?rev=329734&r1=329733&r2=329734&view=diff
==============================================================================
--- spamassassin/trunk/build/automc/buildbot_ready (original)
+++ spamassassin/trunk/build/automc/buildbot_ready Sun Oct 30 20:36:32 2005
@@ -132,7 +132,13 @@
 
 
 sub try_get_exclusive_lock {
-  return 1 if (!-d $LOCKDIR);       # no locking needed
+  if (!-d $LOCKDIR) {
+    print "singleton lock: $LOCKDIR does not exist, so no locking is required.\n";
+    return 1;
+  }
+  if (!-w $LOCKDIR) {
+    die "cannot write to $LOCKDIR";
+  }
 
   $got_lock = undef;
   my $newf = $LOCKDIR."/singleton_lock.active";