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

List:       kde-commits
Subject:    icecream/daemon
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2012-07-08 13:07:33
Message-ID: 20120708130733.39844AC7A9 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1304606 by lunakl:

avoid iceccd restart bind() failure with the global unix socket too



 M  +1 -0      main.cpp  


--- trunk/icecream/daemon/main.cpp #1304605:1304606
@@ -507,6 +507,7 @@
     myaddr.sun_family = AF_UNIX;
     if (getuid()==0) {
         strncpy(myaddr.sun_path, "/var/run/iceccd.socket", sizeof(myaddr.sun_path)-1);
+        unlink(myaddr.sun_path);
     } else {
         strncpy(myaddr.sun_path, getenv("HOME"), sizeof(myaddr.sun_path)-1);
         strncat(myaddr.sun_path, "/.iceccd.socket", sizeof(myaddr.sun_path)-1-strlen(myaddr.sun_path));
[prev in list] [next in list] [prev in thread] [next in thread] 

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