* io.c: don't fail on NFS when there are no more locks available.
svn path=/trunk/mono/; revision=41961
+2005-03-17 Miguel de Icaza <miguel@novell.com>
+
+ * io.c: don't fail on NFS when there are no more locks available.
+
2005-03-09 Dick Porter <dick@ximian.com>
* error.c (_wapi_get_win32_file_error): ENFILE and EMFILE should
#endif
if (ret == -1) {
+ /*
+ * if locks are not available (NFS for example), ignore the error
+ */
+ if (errno == ENOLCK)
+ return (TRUE);
+
SetLastError (ERROR_LOCK_VIOLATION);
return(FALSE);
}