Comment #10 on issue 12343 by james.su: ProcessSingleton Linux cleanups http://code.google.com/p/chromium/issues/detail?id=12343
Just wondering if following approach works for (2): In ProcessSingleton::Create(), append the pid to the filename of singleton socket, such as, SingletonSocket-12345 (assuming the pid is 12345). Then after binding the socket, creates a symbol link "SingletonSocket" to the real socket file. In ProcessSingleton::NotifyOtherProcess(), if it's successfully connected to "SingletonSocket" but no ACK received, then gets the real socket filename by calling readlink() and extracts the pid from it and then kills the pid. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---
