unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34355: Emacs confusion with file locking after hostname change
@ 2019-02-06 22:21 Ulrich Windl
  2019-02-07  3:54 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Windl @ 2019-02-06 22:21 UTC (permalink / raw)
  To: 34355

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







^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#34355: Emacs confusion with file locking after hostname change
  2019-02-06 22:21 bug#34355: Emacs confusion with file locking after hostname change Ulrich Windl
@ 2019-02-07  3:54 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2019-02-07  3:54 UTC (permalink / raw)
  To: Ulrich Windl; +Cc: 34355

"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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-07  3:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-06 22:21 bug#34355: Emacs confusion with file locking after hostname change Ulrich Windl
2019-02-07  3:54 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).