help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacsclient uses obsolete "server" file on Windows


From: Lennart Borgman (gmail)
Subject: Re: emacsclient uses obsolete "server" file on Windows
Date: Thu, 12 Jun 2008 15:48:57 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Juanma Barranquero wrote:
On Thu, Jun 12, 2008 at 10:41, djc <newsg@resiak.org> wrote:

But what is the reason for the design decision not to delete the server
authentication file when emacs is killed?

According to the comment in server.el, the risk of the server file not
being "ours" anymore:

  ;; Delete the associated connection file, if applicable.
  ;; This is actually problematic: the file may have been overwritten by
  ;; another Emacs server in the mean time, so it's not ours any more.
  ;; (and (process-contact proc :server)
  ;;      (eq (process-status proc) 'closed)
  ;;      (ignore-errors (delete-file (process-get proc :server-file))))


Couldn't that be handled by checking the server file modification time?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]