From: Espen Wiborg <espenhw@grumblesmurf.org>
To: emacs-devel@gnu.org
Subject: Re: y-or-n-p and emacs --daemon
Date: Wed, 03 Dec 2008 12:11:18 +0100 [thread overview]
Message-ID: <87ocztcy3t.fsf@grumblesmurf.org> (raw)
In-Reply-To: <18742.25383.80136.946560@a1i15.kph.uni-mainz.de> (Ulrich Mueller's message of "Wed, 3 Dec 2008 11:44:55 +0100")
Ulrich Mueller <ulm@gentoo.org> writes:
> Considering bugs like #1474, I wonder if y-or-n-p DTRT?
>
> Try the following:
>
> $ emacs-23 -Q --daemon --eval '(y-or-n-p "hello? ")'
>
> 1. It hangs indefinitely,
> 2. it does not detach properly (it forks, but the parent doesn't exit),
> 3. it doesn't start the server.
>
> Of course 2. and 3. are a consequence of 1. since it doesn't come to
> the point where daemon-initialized gets called.
>
> Now the problem is that y-or-n-p is called from many places, so
> depending on the configuration there is some chance that Emacs will
> ask for user interaction before initialisation is finished. There is
> even one in server-start (which AFAICS won't be triggered in daemon
> mode, but still...).
Actually, this yes-or-no-p *is* triggered in daemon mode, but only
(AFAICT) in the case uncovered by bug #1310, where a client's X
connection is lost and the daemon tries to shut down.
--
Espen Wiborg <espenhw@grumblesmurf.org> - Veritas vos liberabit
'Pooh?' he said. 'Yes, Piglet?' Pooh replied. 'Nothing,' Piglet
said, taking Pooh's paw, 'I just wanted to throw an exception.'
next prev parent reply other threads:[~2008-12-03 11:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-03 10:44 y-or-n-p and emacs --daemon Ulrich Mueller
2008-12-03 11:11 ` Espen Wiborg [this message]
2008-12-03 19:33 ` Chong Yidong
2008-12-03 19:53 ` Dan Nicolaescu
2008-12-03 21:07 ` Chong Yidong
2008-12-03 21:53 ` Dan Nicolaescu
2008-12-04 1:05 ` Stephen J. Turnbull
2008-12-04 2:16 ` Stefan Monnier
2008-12-04 3:02 ` Dan Nicolaescu
2008-12-04 5:29 ` Stefan Monnier
2008-12-04 11:15 ` Ulrich Mueller
2008-12-04 11:28 ` Thierry Volpiatto
2008-12-04 13:15 ` Stefan Monnier
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=87ocztcy3t.fsf@grumblesmurf.org \
--to=espenhw@grumblesmurf.org \
--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).