From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#4944: 23.1.50; starting a server without forking a daemon Date: Wed, 18 Nov 2009 10:25:28 -0800 (PST) Message-ID: <200911181825.nAIIPSmQ009732@godzilla.ics.uci.edu> References: Reply-To: Dan Nicolaescu , 4944@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258570062 30407 80.91.229.12 (18 Nov 2009 18:47:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Nov 2009 18:47:42 +0000 (UTC) Cc: 4944@emacsbugs.donarmstrong.com To: Kenny Stuart Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 18 19:47:35 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NApYz-0004PU-Tc for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Nov 2009 19:47:34 +0100 Original-Received: from localhost ([127.0.0.1]:56344 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NApYz-0003sm-FY for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Nov 2009 13:47:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NApYv-0003sT-Ox for bug-gnu-emacs@gnu.org; Wed, 18 Nov 2009 13:47:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NApYq-0003rl-Dj for bug-gnu-emacs@gnu.org; Wed, 18 Nov 2009 13:47:28 -0500 Original-Received: from [199.232.76.173] (port=37501 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NApYq-0003ri-93 for bug-gnu-emacs@gnu.org; Wed, 18 Nov 2009 13:47:24 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37605) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NApYp-0003Tz-Li for bug-gnu-emacs@gnu.org; Wed, 18 Nov 2009 13:47:23 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAIIlKje014984; Wed, 18 Nov 2009 10:47:20 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAIIZ4xx013937; Wed, 18 Nov 2009 10:35:04 -0800 Resent-Date: Wed, 18 Nov 2009 10:35:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 18 Nov 2009 18:35:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4944 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4944-submit@emacsbugs.donarmstrong.com id=B4944.125856873913349 (code B ref 4944); Wed, 18 Nov 2009 18:35:04 +0000 Original-Received: (at 4944) by emacsbugs.donarmstrong.com; 18 Nov 2009 18:25:39 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from colin-baker-v0.ics.uci.edu (colin-baker-v0.ics.uci.edu [128.195.1.153]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAIIPcRa013340 for <4944@emacsbugs.donarmstrong.com>; Wed, 18 Nov 2009 10:25:39 -0800 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by colin-baker-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id nAIIPSB6023800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Nov 2009 10:25:28 -0800 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nAIIPSmQ009732; Wed, 18 Nov 2009 10:25:28 -0800 (PST) In-Reply-To: (Kenny Stuart's message of "Tue, 17 Nov 2009 14:25:34 +0000") Original-Lines: 41 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nAIIPSB6023800 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 18 Nov 2009 13:47:28 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32687 Archived-At: Kenny Stuart writes: > Please write in English if possible, because the Emacs maintainers > usually do not have translators to read other languages for them. > > Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. > > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug. If you can, give > a recipe starting from `emacs -Q': > > This is a feature request to add the facility to start an emacs server > using a command-line option that runs as a foreground process instead > of forking a daemon and exiting. > > Motivation: > > Forking a daemon then exiting the main process is incompatible with > systems that manage processes as services, such as launchd on OS X, > therefore it is not possible to create an effective launchd service > using emacs in daemon mode. > > Possible Solution: > > For review I have included a patch that adds a --server command line > option that does what the --daemon option does, except it runs the > server in the foreground process rather than forking a daemon and > exiting. How is this different from: emacs -f server-start ? Also note that you do not have to start the daemon explicitly, if you use emacsclient -a "" it will start an emacs daemon if one is not already running.