]> git.sur5r.net Git - openldap/commitdiff
ITS#3770 lockf can return either EACCES or EAGAIN
authorHoward Chu <hyc@openldap.org>
Sat, 11 Jun 2005 19:32:03 +0000 (19:32 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 11 Jun 2005 19:32:03 +0000 (19:32 +0000)
servers/slapd/back-bdb/alock.c

index 897cda3cc0cf53548cd0c1bfd6301bf3fb904fdc..4951e8ffabc947d3dda6a4c21cd56e1c0a973129 100644 (file)
@@ -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;