From: Howard Chu Date: Sat, 11 Jun 2005 19:32:03 +0000 (+0000) Subject: ITS#3770 lockf can return either EACCES or EAGAIN X-Git-Tag: OPENLDAP_AC_BP~538 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2cc3190c6238fb2c2f569b4a2c915f3f26be6eb5;p=openldap ITS#3770 lockf can return either EACCES or EAGAIN --- 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;