Michael Salmon wrote:
Jim Cunning wrote:
On Fri, 21 Jan 2000, Ben Rosenberg wrote:
[snip]
I have never really looked at where the lock file in the netscape directory points, but I have been having really bad Netscape crashes this morning and I saw this and was wondering if it is normal or did something get screwed up to cause it to point somewhere it shouldn't. If it's normal for this file to point here, then it's just Netscape being it's usual crappy self. Although, I haven't had any trouble with it until I went to the 2.2.14 kernel and the nVidia xserver.
My display is 1152X968 16 bit colour.
lrwxrwxrwx 1 ben users 14 Jan 21 11:52 lock -> 10.10.0.1:7008
[snip]
It looks to me like it's your IP address and the process ID of netscape, probably a cheap way of creating a lock file without actually writing any data--the directory entry says it all. Here's mine:
lock -> 10.64.6.51:5406
and 'ps auwx' shows:
jcunning 5406 0.4 35.2 38724 22200 ? R Jan 20 7:51 /opt/netscape/netscape
You are correct in guessing that it is a <ip address>:<pid> but the reason for doing it isn't to save space, a symbolic link is a file containing the exact text of the link. The reason is that creation of the symbolic link is an atomic process that returns an error if the file exists, using a file would require some complications that don't always work well, especially with NFS mounted file systems.
/Michael
Interesting! Mine points to 127.0.0.2:18557, which is assigned to my Hostname. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/