mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
ITS#3770 lockf can return either EACCES or EAGAIN
This commit is contained in:
parent
117b686da4
commit
2cc3190c62
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue