Skip to content

Commit 0028a3d

Browse files
committed
On Android Termux fcntl file locks maybe arent supported at all. Make the debug message more specific about which file lock, wait or not, is failing.
1 parent b740afa commit 0028a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libutils/file_lib.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ static int LockFD(int fd, short int lock_type, bool wait)
19531953
{
19541954
if (errno != EINTR)
19551955
{
1956-
Log(LOG_LEVEL_DEBUG, "Failed to acquire file lock for FD %d: %s",
1956+
Log(LOG_LEVEL_DEBUG, "Failed to acquire file lock wait for FD %d: %s",
19571957
fd, GetErrorStr());
19581958
return -1;
19591959
}

0 commit comments

Comments
 (0)