all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Andreas Schwab <schwab@suse.de>
Cc: bug-gnu-emacs@gnu.org, rrt@sc3d.org
Subject: Re: How to run server-start only if not already running?
Date: Wed, 07 Nov 2007 02:56:42 -0500	[thread overview]
Message-ID: <E1IpfmE-0004cJ-68@fencepost.gnu.org> (raw)
In-Reply-To: <jer6j3rlpo.fsf@sykes.suse.de> (message from Andreas Schwab on Wed, 07 Nov 2007 00:35:47 +0100)

      (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?




  parent reply	other threads:[~2007-11-07  7:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-06 21:41 How to run server-start only if not already running? Reuben Thomas
2007-11-06 23:35 ` Andreas Schwab
2007-11-06 23:38   ` Reuben Thomas
2007-11-06 23:56     ` Lennart Borgman (gmail)
2007-11-07  0:00       ` Reuben Thomas
2007-11-06 23:46   ` Reuben Thomas
2007-11-07  7:56   ` Richard Stallman [this message]
2007-11-07  9:42     ` Andreas Schwab
2007-11-08  4:41       ` Richard Stallman
2007-11-08  9:49         ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1IpfmE-0004cJ-68@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=rrt@sc3d.org \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.