From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: y-or-n-p and emacs --daemon Date: Thu, 04 Dec 2008 12:28:48 +0100 Message-ID: <871vwo9o27.fsf@tux.homenetwork> References: <18742.25383.80136.946560@a1i15.kph.uni-mainz.de> <87ocztcy3t.fsf@grumblesmurf.org> <87abbdm4t8.fsf@cyd.mit.edu> <200812031953.mB3Jr4qh027604@mothra.ics.uci.edu> <874p1lj7bp.fsf@cyd.mit.edu> <18743.48104.822687.186192@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228390466 13240 80.91.229.12 (4 Dec 2008 11:34:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2008 11:34:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 04 12:35:31 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L8CUU-0007tU-Ku for ged-emacs-devel@m.gmane.org; Thu, 04 Dec 2008 12:35:30 +0100 Original-Received: from localhost ([127.0.0.1]:45522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8CTK-0006lt-8w for ged-emacs-devel@m.gmane.org; Thu, 04 Dec 2008 06:34:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8CSz-0006fh-Oh for emacs-devel@gnu.org; Thu, 04 Dec 2008 06:33:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8CSy-0006ev-D8 for emacs-devel@gnu.org; Thu, 04 Dec 2008 06:33:57 -0500 Original-Received: from [199.232.76.173] (port=45677 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8CSx-0006er-Tw for emacs-devel@gnu.org; Thu, 04 Dec 2008 06:33:56 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:50672 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L8CSx-0006XY-HZ for emacs-devel@gnu.org; Thu, 04 Dec 2008 06:33:55 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L8CSr-0000V4-Pq for emacs-devel@gnu.org; Thu, 04 Dec 2008 11:33:49 +0000 Original-Received: from 49.78.88-79.rev.gaoland.net ([79.88.78.49]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Dec 2008 11:33:49 +0000 Original-Received: from thierry.volpiatto by 49.78.88-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Dec 2008 11:33:49 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 49.78.88-79.rev.gaoland.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:6BMYiJu1TIyGOMgJuMslvqP3LyM= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106556 Archived-At: Ulrich Mueller writes: >>>>>> On Wed, 03 Dec 2008, Stefan Monnier wrote: > >> Ideally, either the question comes before detaching and it should then >> behave as it does in -batch, > > I think that this is unaccaptable. A daemon shouldn't be interactive > before detaching. Besides, there might not be any terminal associated > with stdin, so this doesn't solve the problem for this case. > > Can't y-or-n-p signal an error if it's called before detaching? Note: y-or-n-p is not the only case of interactivity that can happen when starting daemon: if desktop save buffer that has been opened as /su:... or /sudo it will prompt for password and will hang until user kill process. -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France