mdbx: make lck-wait ops breakable for linux/posix.

Change-Id: Ieb113f3c01bceced99b122988f93331d5619c2be
This commit is contained in:
Leonid Yuriev 2019-08-11 12:22:02 +03:00
parent bf0e0382fc
commit 8917fb30bf
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ static int mdbx_lck_op(mdbx_filehandle_t fd, int cmd, short lck, off_t offset,
return 0;
}
int rc = errno;
if (rc != EINTR)
if (rc != EINTR || cmd == op_setlkw)
return rc;
}
}

View File

@ -105,7 +105,7 @@ static int mdbx_lck_op(mdbx_filehandle_t fd, int cmd, short lck, off_t offset,
return 0;
}
int rc = errno;
if (rc != EINTR)
if (rc != EINTR || cmd == F_SETLKW)
return rc;
}
}