1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

add a error code when failed to get lock

This commit is contained in:
Andrew Tridgell -
parent 94fc7fe3af
commit 05696b4bbf

View File

@ -82,7 +82,7 @@ static void lockit(void)
}
if (locked==0 &&
fcntl_lock(shared_fd,SMB_F_SETLKW,0,1,F_WRLCK)==False) {
DEBUG(0,("ERROR: can't get smbw shared lock\n"));
DEBUG(0,("ERROR: can't get smbw shared lock (%s)\n", strerror(errno)));
exit(1);
}
locked++;