From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13807: updated version to avoid MS-Windows vs non-MS-Windows clashes Date: Sat, 02 Mar 2013 23:17:17 +0200 Message-ID: <83vc99tsbm.fsf@gnu.org> References: <512A98D5.7080000@cs.ucla.edu> <512D3508.1000906@cs.ucla.edu> <83txoxwq0p.fsf@gnu.org> <51326459.4030001@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1362259082 25662 80.91.229.3 (2 Mar 2013 21:18:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Mar 2013 21:18:02 +0000 (UTC) Cc: 13807@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 02 22:18:24 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UBtp1-00014j-QN for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Mar 2013 22:18:23 +0100 Original-Received: from localhost ([::1]:53815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBtog-0007oP-IX for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Mar 2013 16:18:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBtoc-0007o5-PC for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2013 16:17:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBtob-0001lX-N8 for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2013 16:17:58 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBtob-0001lP-Jj for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2013 16:17:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UBtog-0000yd-2X for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2013 16:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Mar 2013 21:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 13807-submit@debbugs.gnu.org id=B13807.13622590663731 (code B ref 13807); Sat, 02 Mar 2013 21:18:02 +0000 Original-Received: (at 13807) by debbugs.gnu.org; 2 Mar 2013 21:17:46 +0000 Original-Received: from localhost ([127.0.0.1]:55896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UBtoP-0000y7-Qq for submit@debbugs.gnu.org; Sat, 02 Mar 2013 16:17:46 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:36049) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UBtoL-0000xs-LY for 13807@debbugs.gnu.org; Sat, 02 Mar 2013 16:17:43 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MJ100E00X5VBK00@a-mtaout22.012.net.il> for 13807@debbugs.gnu.org; Sat, 02 Mar 2013 23:17:29 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MJ100E7WXT5EW20@a-mtaout22.012.net.il>; Sat, 02 Mar 2013 23:17:29 +0200 (IST) In-reply-to: <51326459.4030001@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72035 Archived-At: > Date: Sat, 02 Mar 2013 12:43:05 -0800 > From: Paul Eggert > CC: 13807@debbugs.gnu.org > > On 02/27/2013 10:49 AM, Eli Zaretskii wrote: > > > The results were that when Emacs running on GNU/Linux had the file > > locked, Emacs running on Windows would refrain from locking it, and > > vice versa when the file was locked by Emacs running on Windows and > > a GNU/Linux Emacs would try to lock it. > > Unfortunately when (for example) the GNU/Linux Emacs refrained from > locking the file, what it was actually doing was using its own > separate lock file, whose name it got in a buggy way. That is, when > locking FILE it discovered a regular file .#FILE (the MS-Windows lock > file) and then decided to use a symlink .#FILE.0, thus ignoring the > MS-Windows lock. That's not what happened in my testing. There, there was no lock file named .#FILE.0 or anything like that. Can you describe your testing in more details, and what versions of NFS and Windows did you use? > The process of guessing a lock file name by appending ".0" is > obviously flaky, as it's prone to races. The recent MS-Windows > changes have made the races more likely, but they were present even > before the changes. Emacs should not guess the lock file name. That's a different issue, though. > For now, I've installed the patch as trunk bzr 111918, as it fixes these > races. This patch causes Emacs to use a different lock file name > .#-FILE for MS-Windows than the usual lock file .#FILE for GNU/Linux, > which is not good, but Emacs was using different lock files anyway, > and a virtue of the patch is that any problems in the MS/Windows > implementation won't get in the way of GNU/Linux users on a networked > file system. I wish you didn't install the .#-FILE part. It is no longer justified.