GNU bug report logs - #34355
Emacs confusion with file locking after hostname change

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Ulrich Windl" <Ulrich.Windl@HIDDEN>; Keywords: confirmed; dated Wed, 6 Feb 2019 22:23:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 34355 <at> debbugs.gnu.org:


Received: (at 34355) by debbugs.gnu.org; 7 Feb 2019 03:54:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 06 22:54:17 2019
Received: from localhost ([127.0.0.1]:36448 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gralV-0005fq-Im
	for submit <at> 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 <rgm@HIDDEN>) id 1gralT-0005fe-LV
 for 34355 <at> 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 <rgm@HIDDEN>)
 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 <rgm@HIDDEN>)
 id 1gralN-0004Qr-H8; Wed, 06 Feb 2019 22:54:09 -0500
From: Glenn Morris <rgm@HIDDEN>
To: "Ulrich Windl" <Ulrich.Windl@HIDDEN>
Subject: Re: bug#34355: Emacs confusion with file locking after hostname change
References: <5C5B5DFF020000A10002F8A9@HIDDEN>
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@HIDDEN> (Ulrich
 Windl's message of "Wed, 06 Feb 2019 23:21:51 +0100")
Message-ID: <3ef8knti6.fsf@HIDDEN>
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 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34355; Package emacs. Full text available.
Added tag(s) confirmed. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Feb 2019 22:22:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 06 17:22:14 2019
Received: from localhost ([127.0.0.1]:36297 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1grVaA-0001j8-9b
	for submit <at> 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 <Ulrich.Windl@HIDDEN>)
 id 1grVa6-0001it-N5
 for submit <at> 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 <Ulrich.Windl@HIDDEN>)
 id 1grVZy-0005rQ-Q4
 for submit <at> 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 <Ulrich.Windl@HIDDEN>)
 id 1grVZy-0007yV-1A
 for bug-gnu-emacs@HIDDEN; 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 <Ulrich.Windl@HIDDEN>)
 id 1grVZw-0005r1-Vc
 for bug-gnu-emacs@HIDDEN; 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 <Ulrich.Windl@HIDDEN>)
 id 1grVZv-0005mq-PA
 for bug-gnu-emacs@HIDDEN; 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 <bug-gnu-emacs@HIDDEN>; 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 <bug-gnu-emacs@HIDDEN>; 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@HIDDEN>
X-Mailer: Novell GroupWise Internet Agent 18.1.0 
Date: Wed, 06 Feb 2019 23:21:51 +0100
From: "Ulrich Windl" <Ulrich.Windl@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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






Acknowledgement sent to "Ulrich Windl" <Ulrich.Windl@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#34355; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.