emacs-devel
[Top][All Lists]
Advanced

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

Re: Lost socket for detached Emacs, how to regain control?


From: Ulrich Mueller
Subject: Re: Lost socket for detached Emacs, how to regain control?
Date: Fri, 7 Nov 2008 07:48:46 +0100

>>>>> On Wed, 05 Nov 2008, Stefan Monnier wrote:

>> Consider the following scenario:
>> - emacs --daemon is running in the background without any open frame
>> - server-start is also called in another Emacs process

>> Now there is no more way to connect to the detached Emacs. (Or am I
>> missing something?)

>> Maybe it would be feasible to add a recovery mechanism for such a
>> case, like binding [sigusr1] to server-start?

> That would be easy to do, indeed.  Another option is for server-start
> to try and detect that there's already an active socket (using
> server-running-p) and refuse to start.

Or both? The server process or socket could be non-functional for other
reasons.

In case server-start is changed, maybe an option to force a restart
should be added.

Ulrich




reply via email to

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