https://bugzilla.novell.com/show_bug.cgi?id=389255 User wolfgang@rosenauer.org added comment https://bugzilla.novell.com/show_bug.cgi?id=389255#c4 --- Comment #4 from Wolfgang Rosenauer <wolfgang@rosenauer.org> 2008-05-14 01:18:27 MST ---
Looks like the code is more or less obsolete so it could probably removed completely. It could not have worked properly in the past either since openSUSE typically mapped the hostname to 127.0.0.2. So IsSymlinkStaleLock() would true on all systems that share the home directory.
It's not really obsolete since there are too many (network) filesystems which don't support proper locking through fcntl. But yes, seems you are right about the fact that it is only of partial use if it resolves to a loopback interface.
If you don't want to remove the code you could use getifaddrs() instead to find the systems' IP addresses. getifaddrs() doesn't use DNS therefore doesn't cause timeouts.
I will see if that's possible. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.