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: Dan Nicolaescu
Subject: Re: Lost socket for detached Emacs, how to regain control?
Date: Fri, 7 Nov 2008 06:54:39 -0800 (PST)

Ulrich Mueller <address@hidden> writes:

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

Like a silly cron job removing the socket from /tmp.  I've had a
[sigusr2] binding to server-start in my .emacs for a long time for
exactly that reason.  It has been very useful quite a few times.




reply via email to

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