From 2cc3190c6238fb2c2f569b4a2c915f3f26be6eb5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 11 Jun 2005 19:32:03 +0000 Subject: [PATCH] ITS#3770 lockf can return either EACCES or EAGAIN --- servers/slapd/back-bdb/alock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/alock.c b/servers/slapd/back-bdb/alock.c index 897cda3cc0..4951e8ffab 100644 --- a/servers/slapd/back-bdb/alock.c +++ b/servers/slapd/back-bdb/alock.c @@ -124,7 +124,7 @@ alock_test_lock ( int fd, int slot ) res = lockf (fd, F_TEST, (off_t) ALOCK_SLOT_SIZE); if (res == -1) { - if (errno == EACCES) { + if (errno == EACCES || errno == EAGAIN) { return ALOCK_LOCKED; } else { return -1; -- 2.39.5