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

Previous Next

Package: emacs;

Reported by: "Ulrich Windl" <Ulrich.Windl <at> rz.uni-regensburg.de>

Date: Wed, 6 Feb 2019 22:23:02 UTC

Severity: normal

Tags: confirmed

To reply to this bug, email your comments to 34355 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#34355; Package emacs. (Wed, 06 Feb 2019 22:23:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Ulrich Windl" <Ulrich.Windl <at> rz.uni-regensburg.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 06 Feb 2019 22:23:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Ulrich Windl" <Ulrich.Windl <at> rz.uni-regensburg.de>
To: <bug-gnu-emacs <at> gnu.org>
Subject: Emacs confusion with file locking after hostname change
Date: Wed, 06 Feb 2019 23:21:51 +0100
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






Added tag(s) confirmed. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 07 Feb 2019 03:53:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34355; Package emacs. (Thu, 07 Feb 2019 03:55:01 GMT) Full text and rfc822 format available.

Message #10 received at 34355 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: "Ulrich Windl" <Ulrich.Windl <at> rz.uni-regensburg.de>
Cc: 34355 <at> debbugs.gnu.org
Subject: Re: bug#34355: Emacs confusion with file locking after hostname change
Date: Wed, 06 Feb 2019 22:54:09 -0500
"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.




This bug report was last modified 6 years and 184 days ago.

Previous Next


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