add a error code when failed to get lock
[samba.git] / source3 / smbwrapper / shared.c
index f679e4a8a8cd1277c7de4a7c1cb4771d17829804..010c5ae19a30289d935321257d691afb4d35cb6c 100644 (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++;