From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#13807: The lock for 'DIR/FILE' should always be 'DIR/.#FILE'. Date: Mon, 25 Feb 2013 15:40:11 -0800 Message-ID: <512BF65B.5010500@cs.ucla.edu> References: <512A98D5.7080000@cs.ucla.edu> <2dip5g4154.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060308010303020006080800" X-Trace: ger.gmane.org 1361835685 10891 80.91.229.3 (25 Feb 2013 23:41:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2013 23:41:25 +0000 (UTC) Cc: 13807@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 26 00:41:48 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 1UA7g3-0001M3-C0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Feb 2013 00:41:47 +0100 Original-Received: from localhost ([::1]:45906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA7fi-0003TG-K8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Feb 2013 18:41:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA7fe-0003T2-Mk for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2013 18:41:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UA7fc-0005oc-U1 for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2013 18:41:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA7fc-0005oX-RP for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2013 18:41:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UA7hF-0007Fv-UV for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2013 18:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Feb 2013 23:43:01 +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.136183572427819 (code B ref 13807); Mon, 25 Feb 2013 23:43:01 +0000 Original-Received: (at 13807) by debbugs.gnu.org; 25 Feb 2013 23:42:04 +0000 Original-Received: from localhost ([127.0.0.1]:50166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UA7gG-0007EK-SC for submit@debbugs.gnu.org; Mon, 25 Feb 2013 18:42:03 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:38206) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UA7gB-0007EA-9y for 13807@debbugs.gnu.org; Mon, 25 Feb 2013 18:41:58 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id D74C839E8105; Mon, 25 Feb 2013 15:40:12 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gWaS+L+L5rB3; Mon, 25 Feb 2013 15:40:11 -0800 (PST) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id BAA1A39E8008; Mon, 25 Feb 2013 15:40:11 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 In-Reply-To: <2dip5g4154.fsf@fencepost.gnu.org> 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:71812 Archived-At: This is a multi-part message in MIME format. --------------060308010303020006080800 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 02/25/13 11:57, Glenn Morris wrote: >> . > > AFAICS, all that thread says is "we should remove this because it never > worked", when in fact it did work just fine until recently. Yes, the discussion should have been clearer. This patch was prompted by a code inspection after fixing the bug mentioned in that thread; the patch does not fix the bug (the bug's already fixed). I tried to clarify this in the revised patch (attached). > So the motivation for this seems to be entirely as given in the NEWS > (which is not really where it belongs IMO) OK, I moved the motivation out of NEWS and into the ChangeLog entry. > No-one ever reported any (non-theoretical) > problems with it in practice, AFAIK. The problem is more likely to happen with today's changes to the MS-Windows side. And even if the problem was less likely, it's still a race condition that should get fixed -- the point of that lock file is to avoid races, after all. --------------060308010303020006080800 Content-Type: text/plain; charset=us-ascii; name="filelock.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="filelock.txt" PT09IG1vZGlmaWVkIGZpbGUgJ2V0Yy9DaGFuZ2VMb2cnCi0tLSBldGMvQ2hhbmdlTG9nCTIw MTMtMD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TY4MCw5ICs2NTIsMTAgQEAKIH0KIAogdm9pZAotdW5sb2NrX2ZpbGUgKHJlZ2lzdGVy IExpc3BfT2JqZWN0IGZuKQordW5sb2NrX2ZpbGUgKExpc3BfT2JqZWN0IGZuKQogewotICBy ZWdpc3RlciBjaGFyICpsZm5hbWU7CisgIGNoYXIgKmxmbmFtZTsKKyAgVVNFX1NBRkVfQUxM T0NBOwogCiAgIGZuID0gRmV4cGFuZF9maWxlX25hbWUgKGZuLCBRbmlsKTsKICAgZm4gPSBF TkNPREVfRklMRSAoZm4pOwpAQCAtNjkxLDYgKzY2NCw4IEBACiAKICAgaWYgKGN1cnJlbnRf bG9ja19vd25lciAoMCwgbGZuYW1lKSA9PSAyKQogICAgIHVubGluayAobGZuYW1lKTsKKwor ICBTQUZFX0ZSRUUgKCk7CiB9CiAKIHZvaWQKQEAgLTc1Niw5ICs3MzEsMTAgQEAKICAgKExp c3BfT2JqZWN0IGZpbGVuYW1lKQogewogICBMaXNwX09iamVjdCByZXQ7Ci0gIHJlZ2lzdGVy IGNoYXIgKmxmbmFtZTsKKyAgY2hhciAqbGZuYW1lOwogICBpbnQgb3duZXI7CiAgIGxvY2tf aW5mb190eXBlIGxvY2tlcjsKKyAgVVNFX1NBRkVfQUxMT0NBOwogCiAgIGZpbGVuYW1lID0g RmV4cGFuZF9maWxlX25hbWUgKGZpbGVuYW1lLCBRbmlsKTsKIApAQCAtNzc1LDYgKzc1MSw3 IEBACiAgIGlmIChvd25lciA+IDApCiAgICAgRlJFRV9MT0NLX0lORk8gKGxvY2tlcik7CiAK KyAgU0FGRV9GUkVFICgpOwogICByZXR1cm4gcmV0OwogfQogCgo= --------------060308010303020006080800--