unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: bwoster <bwooster47@gmail.com>
To: Emacs-devel@gnu.org
Subject: Re: emacs --daemon should provide a way to get its process id
Date: Sat, 1 Nov 2008 07:05:29 -0700 (PDT)	[thread overview]
Message-ID: <20280352.post@talk.nabble.com> (raw)
In-Reply-To: <18699.23113.985700.25955@a1ihome1.kph.uni-mainz.de>



Ulrich Mueller-2 wrote:
> 
> by OpenRC's "start-stop-daemon"). What seems to be missing is an easy
> way to get the process id of the daemon.
> Most other programs running as a daemon save their process id in a
> file, typically located under /var/run.
> ...
> Any opinions about attached patch which adds a "--pidfile" option?
> ...
> Ulrich
> 

I'm all for it! I've just spent an hour trying to test out an init.d script,
but it is not very robust without a pidfile, so your patch would make things
so much easier...

Emacs does have the (emacs-pid) lisp function, but that too is not easy to
try, and there may be race conditions when two --daemons are started.

Actually... with your patch, if two emacs --daemon --pidfile=same_file are
started, what will happen?

-- 
View this message in context: http://www.nabble.com/emacs---daemon-should-provide-a-way-to-get-its-process-id-tp20272581p20280352.html
Sent from the Emacs - Dev mailing list archive at Nabble.com.





  reply	other threads:[~2008-11-01 14:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-31 19:19 emacs --daemon should provide a way to get its process id Ulrich Mueller
2008-11-01 14:05 ` bwoster [this message]
2008-11-01 17:33   ` Ulrich Mueller
2008-11-02  1:55 ` Stefan Monnier
2008-11-02  2:18   ` Juanma Barranquero

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=20280352.post@talk.nabble.com \
    --to=bwooster47@gmail.com \
    --cc=Emacs-devel@gnu.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).