From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#49261: 28.0.50; File Locking Breaks Presumptuous Toolchains Date: Wed, 30 Jun 2021 16:08:01 +0200 Message-ID: <87tulf30ou.fsf@gnus.org> References: <87o8bn7bie.fsf@gnus.org> <83k0mbmqkh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32670"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: ncaprisunfan@gmail.com, 49261@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 30 16:09:18 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lyatx-0008CX-Va for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Jun 2021 16:09:18 +0200 Original-Received: from localhost ([::1]:38456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyatx-00038x-09 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Jun 2021 10:09:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyati-000378-Tw for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2021 10:09:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46832) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyath-0001Cl-TV for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2021 10:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lyath-0003VN-Ig for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2021 10:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Jun 2021 14:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49261 X-GNU-PR-Package: emacs Original-Received: via spool by 49261-submit@debbugs.gnu.org id=B49261.162506209713418 (code B ref 49261); Wed, 30 Jun 2021 14:09:01 +0000 Original-Received: (at 49261) by debbugs.gnu.org; 30 Jun 2021 14:08:17 +0000 Original-Received: from localhost ([127.0.0.1]:58378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyasz-0003UM-5Q for submit@debbugs.gnu.org; Wed, 30 Jun 2021 10:08:17 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:58498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyasu-0003Tu-3l for 49261@debbugs.gnu.org; Wed, 30 Jun 2021 10:08:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=J8mt1KLrtvGAZxK6kyxOBYtkq4qOdt2s4D3oLdHANPc=; b=BULcxkENCcXTVBogZRkg1PuD6N UIj4krLNJLmbK3yxE3IKEkvtRaae7TCVGUq4x24jMKSTifYMB5RVWyeaqq5lc5F726OfDHE5ByHKc oISlbDMpuhRvb3B0RqRGjiD3WJME40vLjK2ZOJFrcxOwChEQz7OpVL4AsKC0JW+7KcUo=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lyasj-0002XM-Jj; Wed, 30 Jun 2021 16:08:05 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUgEhLHDBHMKSz8 9PPhfoHno6PCJin////jDEKiAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UGHg4CNzXOHxoAAAGESURB VDjLbZTNbcMwDIVloAtIsH1X3C4QWgMIRgewjfSeBt1/hfJPolQ3ByHQY0h+j1Sc6z+ePwtAd/t5 HiKEc+2CPwAyXXs/7uV24MgN0hNPUvn2zVIkPAAiCwPVyqKMO6mQopckGwdNu6oAdxX8CTsdURRs 4kuFQHeYQgTKQMKMBb5LCm2ChSlZitIESFNrTVFjiBhTKMd8cswpHN7/NCmSHmKocHCKOzexqiCw fsLfRWni0BGgP0RYSjOHzGbCKgFKe8yB/QYMfGcVduNA4WUc0HAMaJJZITFB5mFWBLHrEUVoUwBQ BeZwTQqMuXMTh+6SOj5GH3LlYBCxa+s4nHaalb9yOF4x/7hwEGE/D68LN9h+2MxEsJHqzKIKLQd9 G1PUhW7Hjo29YC2brnbNDEl912ckZbbccgjhyYTtXqkQUmemClP+j8M1+1Fn5gr6n/W9qWApZIe0 q4GtUMcnEpYqNI4vO6lVCPYCnqTaPwg/77Hn0PVNFw4n1t0uHM72o77pX7l2dIu40r9MAAAAJXRF WHRkYXRlOmNyZWF0ZQAyMDIxLTA2LTMwVDE0OjAyOjU1KzAwOjAwlmkouwAAACV0RVh0ZGF0ZTpt b2RpZnkAMjAyMS0wNi0zMFQxNDowMjo1NSswMDowMOc0kAcAAAAASUVORK5CYII= X-Now-Playing: Orchestral Manoeuvres in the Dark's _Souvenir (3): Unreleased Archives Vol 1_: "Cajun Moon" In-Reply-To: <83k0mbmqkh.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 30 Jun 2021 16:26:22 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209199 Archived-At: Eli Zaretskii writes: >> The lockfiles are symlinks, so it should theoretically be >> possible to have them elsewhere without being any racier than the code >> currently is, I think. > > ...even if the lock files are symlinks (which they not necessarily > are), we need to handle the case of several files with identical > basenames in different directories. We could perhaps reuse the auto-save file name logic? I.e., extend `make-auto-save-file-name' so that we can use it to compute the lock file names, too. Or just use the UNIIFY logic from auto-save-file-name-transforms unconditionally... > (Their being symlinks is unimportant, because the target of the > symlink doesn't exist.) Right; I'd forgotten that we just use the lock symlink to stash some extra data about the locking Emacs process. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no