From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.help
Subject: Re: How to run --daemon in foreground?
Date: Mon, 31 Oct 2016 14:26:47 +0000
Message-ID:
References: <20161029151559.GB30693@protected.rcdrun.com>
<20161030153451214174078@bob.proulx.com>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: blaine.gmane.org 1477924367 6225 195.159.176.226 (31 Oct 2016 14:32:47 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 31 Oct 2016 14:32:47 +0000 (UTC)
Cc: help-gnu-emacs@gnu.org
To: Glenn Morris , Stefan Monnier
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 31 15:32:42 2016
Return-path:
Envelope-to: geh-help-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
by blaine.gmane.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1c1DdV-0008GE-Q8
for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Oct 2016 15:32:29 +0100
Original-Received: from localhost ([::1]:36004 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from )
id 1c1DdY-0000yH-GB
for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Oct 2016 10:32:32 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35833)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1c1DYH-0005Sn-Hl
for help-gnu-emacs@gnu.org; Mon, 31 Oct 2016 10:27:06 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1c1DYD-00006k-1S
for help-gnu-emacs@gnu.org; Mon, 31 Oct 2016 10:27:05 -0400
Original-Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:35625)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1c1DYB-000057-BN; Mon, 31 Oct 2016 10:26:59 -0400
Original-Received: by mail-wm0-x22c.google.com with SMTP id a197so23515585wmd.0;
Mon, 31 Oct 2016 07:26:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=6ys7L64OD9z70Ed4fOlmQm9tn5VQQVqLxato/fZCFMQ=;
b=lwXtDGbCgkVxgywHBhZ/CSr3HbyzBmA9gGb0TZBPaVW7ykkgJwmrMPpn2THJbnXtyz
V6g8E5rbP0yZ2SuLswuwAANOkckAmR0Q9af216bRowEd0uPdPFMV+m2vElQRlSJq3ryK
tLmLVqGrbKiUWz0CtNMDkuto1HGPomUjymICsFkZ5FI3GC3sjpYvViR8OVV23SqPoKdw
mTvhNDeJ3RcH2GALvhKOOfo04f2y5xJyqOXHq6CMaGimgJJ4o6y4yN3uzxx/MCJue1rE
YMftGtF1EUXGaUrvbu8mB+PWyRnqgon+qnv+ORAGUt6a0Y7Ezsp4DI5JvvP0s4p+ecPi
8k2w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=6ys7L64OD9z70Ed4fOlmQm9tn5VQQVqLxato/fZCFMQ=;
b=EZZm70Dz0RflwJUaMgfjwCPnrc9se50V9h10OZOAfZ5VBuoLaHGehmjgf90eoquzxk
+3nLBsci+hmjFbHLlDMb+sO8qe8npiLu93/dheNYQlO3Y0Y5medod00VTgeDOejlcntf
o4ZNS3L3s1dlQJz+9za5eJ+g0z0AXnhDyXkWW1ZGI8jVHofqbN0sCqK/65PnIbd/D2pv
ishzO2LuDMhA5KNZi2SoBH31JgHNpwuyNEdAUlrT2MKtS2aMjM3nomfYHKHemd/EoCg8
Dm63wMd0TtRvAkjLElEitFcVvnOcaNRWlmVzL4yXxDhhYFenwvVoXha6MYBDA1mHBpMl
SaaQ==
X-Gm-Message-State: ABUngvePGUlXcUpDd66cG/NiVE37O6wLewFfF7VL3pILOFtlXIE+cZptyvtGoYwUfXbDS6PZJvoeOjmEXCp2aw==
X-Received: by 10.194.108.105 with SMTP id hj9mr22477325wjb.194.1477924017865;
Mon, 31 Oct 2016 07:26:57 -0700 (PDT)
In-Reply-To:
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2a00:1450:400c:c09::22c
X-Content-Filtered-By: Mailman/MimeDel 2.1.21
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Users list for the GNU Emacs text editor
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "help-gnu-emacs"
Xref: news.gmane.org gmane.emacs.help:111644
Archived-At:
Glenn Morris schrieb am Mo., 31. Okt. 2016 um 01:22 Uhr:
> Stefan Monnier wrote:
>
> > Actually, it should be possible to use a foreground process without
> > a tty by using "emacs --batch". IIUC it will require fiddling to make
> > it work right, but it's be good if someone could try it and report its
> > experience (e.g. in the form of a bug-report).
>
> There's a 7-year old bug report with a simple patch to add equivalent
> functionality. https://debbugs.gnu.org/4944
>
> It seems to me like a feature Emacs should have.
>
>
Agreed. However, the patch doesn't apply cleanly any more.
Please note that starting Emacs without --daemon and '-f server-start' is
not the same: it ignores the systemd socket activation; that code path is
only taken if the --daemon flag is present. Therefore, a new flag (or
--daemon=foreground etc.) is needed.