Article View: gnu.emacs.bug
Article #87496File Interlocking on NFS
From: James Woods 61-89-895257
Date: Mon, 19 Sep 1994 04:34
Date: Mon, 19 Sep 1994 04:34
30 lines
1819 bytes
1819 bytes
emacs 19.25 SunOS 4.1 & Solaris 2.3 on SPARC stations configure --prefix=/dme/software/gnu/solaris --with-x-toolkit We have started making use of the file interlocking feature on emacs. I have noticed that when the lock file is checked, emacs checks that the process with the pid given in the lock file is running on that machine. This obviously falls down when we have a number of machines accessing the same file over NFS. I have temporarily worked around this problem by changing src/filelock.c as follows: jaws@hades(2335)$ diff filelock.c filelock.c.old 302,304c302 < /* jaws:19/9/94 Fixed so that this works across the network */ < /* if (owner != 0 && (kill (owner, 0) >= 0 || errno == EPERM))*/ < if (owner != 0) --- > if (owner != 0 && (kill (owner, 0) >= 0 || errno == EPERM)) This obviously posses the problem that old lock files lying around will continue to lock the file. But as emacs allows locks to be stolen with relative ease this appears to be the lesser of two evils for our particular system. If this is not your preffered default behaviour, maybe it could be offered as an installation option. thanks James
Technical Details
Message-ID:
<9409190426.AA04770@hades.dme>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!dme.nt.gov.au!jawsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,b17bad3015c39aae,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-09-19 16:09:44 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!dme.nt.gov.au!jaws From: jaws@dme.nt.gov.au (James Woods 61-89-895257) Newsgroups: gnu.emacs.bug Subject: File Interlocking on NFS Date: 19 Sep 1994 00:34:59 -0400 Organization: GNUs Not Usenet Lines: 30 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <9409190426.AA04770@hades.dme>