Author: gonzalo
Date: 2005-03-17 15:46:40 -0500 (Thu, 17 Mar 2005)
New Revision: 41961
Modified:
trunk/mono/mono/io-layer/ChangeLog
trunk/mono/mono/io-layer/io.c
Log:
2005-03-17 Miguel de Icaza <[EMAIL PROTECTED]>
* io.c: don't fail on NFS when there are no more locks available.
Modified: trunk/mono/mono/io-layer/ChangeLog
===================================================================
--- trunk/mono/mono/io-layer/ChangeLog 2005-03-17 19:53:27 UTC (rev 41960)
+++ trunk/mono/mono/io-layer/ChangeLog 2005-03-17 20:46:40 UTC (rev 41961)
@@ -1,3 +1,7 @@
+2005-03-17 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * io.c: don't fail on NFS when there are no more locks available.
+
2005-03-09 Dick Porter <[EMAIL PROTECTED]>
* error.c (_wapi_get_win32_file_error): ENFILE and EMFILE should
Modified: trunk/mono/mono/io-layer/io.c
===================================================================
--- trunk/mono/mono/io-layer/io.c 2005-03-17 19:53:27 UTC (rev 41960)
+++ trunk/mono/mono/io-layer/io.c 2005-03-17 20:46:40 UTC (rev 41961)
@@ -4174,6 +4174,12 @@
#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);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches