Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv25226/src/gui

Modified Files:
        wxMApp.cpp 
Log Message:
created the lock file in /tmp as fcntl(F_SETLK) fails for NFS-mounted partitions which 
HOME often is

Index: wxMApp.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMApp.cpp,v
retrieving revision 1.229
retrieving revision 1.230
diff -b -u -2 -r1.229 -r1.230
--- wxMApp.cpp  14 Apr 2002 09:32:35 -0000      1.229
+++ wxMApp.cpp  15 Apr 2002 19:46:06 -0000      1.230
@@ -732,5 +732,8 @@
    // note that we can't create the lock file in ~/.M because the directory
    // might not have been created yet...
-   if ( !m_snglInstChecker->Create(".mahogany.lock") )
+   //
+   // it could also be a bad idea as HOME is often NFS-mounted and creating
+   // locks over NFS doesn't work well/at all
+   if ( !m_snglInstChecker->Create(".mahogany.lock", "/tmp") )
    {
       // this message is in English because translations were not loaded yet as


_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to