emacs-devel
[Top][All Lists]
Advanced

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

Re: error in server-running-p on M$


From: Ulrich Mueller
Subject: Re: error in server-running-p on M$
Date: Sun, 23 Nov 2008 14:13:38 +0100

>>>>> On Sun, 23 Nov 2008, Juanma Barranquero wrote:

>> Stopping the server removes the file.

> Ah, no, it doesn't, because IIRC you opposed to it:

>   ;; 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))))

Read the file back and only delete it if it contains our own process
id? Of course there is a race condition ...

Ulrich




reply via email to

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