emacs-devel
[Top][All Lists]
Advanced

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

Re: y-or-n-p and emacs --daemon


From: Espen Wiborg
Subject: Re: y-or-n-p and emacs --daemon
Date: Wed, 03 Dec 2008 12:11:18 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

Ulrich Mueller <address@hidden> 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 <address@hidden> - Veritas vos liberabit
'Pooh?' he said.  'Yes, Piglet?' Pooh replied. 'Nothing,' Piglet
said, taking Pooh's paw, 'I just wanted to throw an exception.'




reply via email to

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