From unknown Sat Aug 09 04:52:29 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#34355 <34355@debbugs.gnu.org> To: bug#34355 <34355@debbugs.gnu.org> Subject: Status: Emacs confusion with file locking after hostname change Reply-To: bug#34355 <34355@debbugs.gnu.org> Date: Sat, 09 Aug 2025 11:52:29 +0000 retitle 34355 Emacs confusion with file locking after hostname change reassign 34355 emacs submitter 34355 "Ulrich Windl" severity 34355 normal tag 34355 confirmed thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 06 17:22:14 2019 Received: (at submit) by debbugs.gnu.org; 6 Feb 2019 22:22:14 +0000 Received: from localhost ([127.0.0.1]:36297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grVaA-0001j8-9b for submit@debbugs.gnu.org; Wed, 06 Feb 2019 17:22:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grVa6-0001it-N5 for submit@debbugs.gnu.org; Wed, 06 Feb 2019 17:22:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:55949) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1grVZy-0005rQ-Q4 for submit@debbugs.gnu.org; Wed, 06 Feb 2019 17:22:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grVZy-0007yV-1A for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2019 17:22:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grVZw-0005r1-Vc for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2019 17:22:01 -0500 Received: from rrzmta1.uni-regensburg.de ([194.94.155.51]:35060) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1grVZv-0005mq-PA for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2019 17:21:59 -0500 Received: from rrzmta1.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 85B6B671DD for ; Wed, 6 Feb 2019 23:21:53 +0100 (CET) Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta1.uni-regensburg.de (Postfix) with ESMTP id 714FF5EB62 for ; Wed, 6 Feb 2019 23:21:52 +0100 (CET) Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Wed, 06 Feb 2019 23:21:52 +0100 Message-Id: <5C5B5DFF020000A10002F8A9@gwsmtp1.uni-regensburg.de> X-Mailer: Novell GroupWise Internet Agent 18.1.0 Date: Wed, 06 Feb 2019 23:21:51 +0100 From: "Ulrich Windl" To: Subject: Emacs confusion with file locking after hostname change Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 194.94.155.51 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi! In Emacs 25.3.1 I had the problem that Emacs refuses to save a modified = buffer after plugging in the network cable: The hostname changed through = DHCP, and now Emacs says the file is locked by another user with some PID. = However that PID is the only Emacs PID on the system, and it's Emacs' own = PID! I suspect that Emacs gets the hostname once during startup, and never = checks it again. (I could not find a match using "C-h a hostname") Regards, Ulrich Windl From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 06 22:52:52 2019 Received: (at control) by debbugs.gnu.org; 7 Feb 2019 03:52:52 +0000 Received: from localhost ([127.0.0.1]:36443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grak8-0005d9-8b for submit@debbugs.gnu.org; Wed, 06 Feb 2019 22:52:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grak6-0005ct-R5 for control@debbugs.gnu.org; Wed, 06 Feb 2019 22:52:51 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grajx-0000gq-Jl for control@debbugs.gnu.org; Wed, 06 Feb 2019 22:52:44 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1grajv-0004LM-5i for control@debbugs.gnu.org; Wed, 06 Feb 2019 22:52:41 -0500 Subject: control message for bug 34355 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 06 Feb 2019 22:52:39 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tag 34355 confirmed From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 06 22:54:17 2019 Received: (at 34355) by debbugs.gnu.org; 7 Feb 2019 03:54:17 +0000 Received: from localhost ([127.0.0.1]:36448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gralV-0005fq-Im for submit@debbugs.gnu.org; Wed, 06 Feb 2019 22:54:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45215) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gralT-0005fe-LV for 34355@debbugs.gnu.org; Wed, 06 Feb 2019 22:54:15 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gralN-0001DA-L7; Wed, 06 Feb 2019 22:54:09 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gralN-0004Qr-H8; Wed, 06 Feb 2019 22:54:09 -0500 From: Glenn Morris To: "Ulrich Windl" Subject: Re: bug#34355: Emacs confusion with file locking after hostname change References: <5C5B5DFF020000A10002F8A9@gwsmtp1.uni-regensburg.de> X-Spook: KGB COSCO DHS Power Blowpipe Ciudad Juarez Recall NOC X-Ran: /ZrCu9,8@q'o3rC^[{BV/^mLmp=geXYR^{zS\IrDS+K~/hU6mYHGU]pXb\P_trE&O)H9J@ X-Hue: brightgreen X-Attribution: GM Date: Wed, 06 Feb 2019 22:54:09 -0500 In-Reply-To: <5C5B5DFF020000A10002F8A9@gwsmtp1.uni-regensburg.de> (Ulrich Windl's message of "Wed, 06 Feb 2019 23:21:51 +0100") Message-ID: <3ef8knti6.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34355 Cc: 34355@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Ulrich Windl" wrote: > In Emacs 25.3.1 I had the problem that Emacs refuses to save a > modified buffer after plugging in the network cable: The hostname > changed through DHCP, and now Emacs says the file is locked by another > user with some PID. However that PID is the only Emacs PID on the > system, and it's Emacs' own PID! > I suspect that Emacs gets the hostname once during startup, and never > checks it again. If it worked like that, you wouldn't have a problem. But since https://debbugs.gnu.org/19438, system-name does change dynamically.