From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: start emacs without creating frames and connect with emacsclient later Date: Mon, 01 Sep 2008 07:03:46 -0700 Message-ID: <200809011403.m81E3k6K020798@sallyv1.ics.uci.edu> References: <200808131610.m7DGAkvk020047@sallyv1.ics.uci.edu> <200808211720.m7LHKSne001960@sallyv1.ics.uci.edu> <87tzddw9bm.fsf@localhorst.mine.nu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220278099 25024 80.91.229.12 (1 Sep 2008 14:08:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Sep 2008 14:08:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 01 16:09:11 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 1KaA34-0000py-DU for ged-emacs-devel@m.gmane.org; Mon, 01 Sep 2008 16:06:30 +0200 Original-Received: from localhost ([127.0.0.1]:53474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaA1x-0001n4-D6 for ged-emacs-devel@m.gmane.org; Mon, 01 Sep 2008 10:05:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaA1s-0001mk-VZ for emacs-devel@gnu.org; Mon, 01 Sep 2008 10:05:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaA1r-0001mP-2h for emacs-devel@gnu.org; Mon, 01 Sep 2008 10:05:16 -0400 Original-Received: from [199.232.76.173] (port=46677 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaA1q-0001mM-Vq for emacs-devel@gnu.org; Mon, 01 Sep 2008 10:05:15 -0400 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]:64487) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1KaA1o-0001TS-QN for emacs-devel@gnu.org; Mon, 01 Sep 2008 10:05:14 -0400 X-ICS-MailScanner-Watermark: 1220882627.28106@3pqLHYZqxK/xUZn2K6d0Rw Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m81E3k6K020798 for ; Mon, 1 Sep 2008 07:03:46 -0700 (PDT) In-Reply-To: <87tzddw9bm.fsf@localhorst.mine.nu> (David Hansen's message of "Fri, 22 Aug 2008 13:58:05 +0200") Original-Lines: 13 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.363, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_FD 0.08) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:103369 Archived-At: David Hansen writes: > On Thu, 21 Aug 2008 10:20:28 -0700 Dan Nicolaescu wrote: > > > + close(0); > > + close(1); > > + close(2); > > Just curious, never wrote a daemon: Shouldn't you dup2 /dev/null here or > something? Not having these fds looks scary to me. Thanks, sounds like a good idea! The updated version that I just posted does that.