[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/icecream/client
From:       Stephan Kulow <coolo () kde ! org>
Date:       2006-05-23 15:37:51
Message-ID: 1148398671.493715.14771.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 544089 by coolo:

avoid file locking in not so bad errors


 M  +3 -2      main.cpp  


--- branches/work/icecream/client/main.cpp #544088:544089
@@ -212,13 +212,14 @@
             delete umsg;
         }
 
+	// we set it to local so we tell the local daemon about it - avoiding file locking
         if ( envs.size() == 0 )
-	    goto do_local_error;
+	    local = true;
         for ( Environments::const_iterator it = envs.begin(); it != envs.end(); ++it ) {
             trace() << "env: " << it->first << " '" << it->second << "'" << endl;
             if ( ::access( it->second.c_str(), R_OK ) ) {
                 log_error() << "can't read environment " << it->second << endl;
-                goto do_local_error;
+                local = true;
             }
         }
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic