From: Andreas Schwab <schwab@suse.de>
To: rms@gnu.org
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 10:42:14 +0100 [thread overview]
Message-ID: <je4pfyl7d5.fsf@sykes.suse.de> (raw)
In-Reply-To: <E1IpfmE-0004cJ-68@fencepost.gnu.org> (Richard Stallman's message of "Wed\, 07 Nov 2007 02\:56\:42 -0500")
Richard Stallman <rms@gnu.org> writes:
> (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?
This is for compatibility with older versions of server.el, which didn't
do it by itself.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2007-11-07 9:42 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
2007-11-07 9:42 ` Andreas Schwab [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=je4pfyl7d5.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=bug-gnu-emacs@gnu.org \
--cc=rms@gnu.org \
--cc=rrt@sc3d.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).