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

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

Re: How to run server-start only if not already running?


From: Richard Stallman
Subject: Re: How to run server-start only if not already running?
Date: Wed, 07 Nov 2007 02:56:42 -0500

      (add-hook 'kill-emacs-hook
        (lambda () (condition-case nil
                       (delete-file (expand-file-name server-name
                                                      server-socket-dir))
                     (error nil))))

Is it necessary to delete a socket explicitly when the process that
created it dies?  If so, shouldn't server.el do this normally?  It
appears currently to do delete the file only when you start a server,
not when you kill the Emacs.

If that change were made, your hack would be simpler, and we could
put into server.el too.  Why not?




reply via email to

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