Skip to content

Commit b541375

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 3aa02e2 commit b541375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libutils/file_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,7 @@ static int LockFD(int fd, short int lock_type, bool wait)
19451945
{
19461946
if (errno != EINTR)
19471947
{
1948-
Log(LOG_LEVEL_DEBUG, "Failed to acquire file lock for FD %d: %s",
1948+
Log(LOG_LEVEL_DEBUG, "Failed to acquire file lock wait for FD %d: %s",
19491949
fd, GetErrorStr());
19501950
return -1;
19511951
}

0 commit comments

Comments
 (0)