From 6abbbbc8ca796c21612d8c8633b1e989baf00b52 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Sun, 27 Aug 2000 20:20:37 +0200
Subject: [PATCH] Fixed bug in low_file_lock(). AutoBuild should now start
 showing green dots...

Rev: src/modules/files/file.c:1.195
---
 src/modules/files/file.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/modules/files/file.c b/src/modules/files/file.c
index a6d6d8306e..bb980a6b3a 100644
--- a/src/modules/files/file.c
+++ b/src/modules/files/file.c
@@ -6,7 +6,7 @@
 /**/
 #define NO_PIKE_SHORTHAND
 #include "global.h"
-RCSID("$Id: file.c,v 1.194 2000/08/27 01:04:36 grubba Exp $");
+RCSID("$Id: file.c,v 1.195 2000/08/27 18:20:37 grubba Exp $");
 #include "fdlib.h"
 #include "interpret.h"
 #include "svalue.h"
@@ -2472,7 +2472,13 @@ static void low_file_lock(INT32 args, int flags)
 #endif
       )
     {
-      error("Recursive file locks!\n");
+      if (flags & fd_LOCK_NB) {
+	pop_n_elems(args);
+	push_int(0);
+	return;
+      } else {
+	error("Recursive file locks!\n");
+      }
     }
   }
 
-- 
GitLab