From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21617: Emacs compilation mode prevents child processes from spawning/forking daemons Date: Mon, 05 Oct 2015 12:25:36 +0300 Message-ID: <83pp0tzmy7.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1444037207 28514 80.91.229.3 (5 Oct 2015 09:26:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2015 09:26:47 +0000 (UTC) Cc: 21617@debbugs.gnu.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 05 11:26:37 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zj22U-0003Mt-Ok for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 11:26:34 +0200 Original-Received: from localhost ([::1]:44979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj22U-0003Ik-4J for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 05:26:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj222-0002rO-50 for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 05:26:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj21y-0007Iu-48 for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 05:26:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj21y-0007Ip-0f for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 05:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zj21x-0008Us-Jq for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 05:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2015 09:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21617 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21617-submit@debbugs.gnu.org id=B21617.144403714132636 (code B ref 21617); Mon, 05 Oct 2015 09:26:01 +0000 Original-Received: (at 21617) by debbugs.gnu.org; 5 Oct 2015 09:25:41 +0000 Original-Received: from localhost ([127.0.0.1]:54846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj21d-0008UK-A0 for submit@debbugs.gnu.org; Mon, 05 Oct 2015 05:25:41 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:51021) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj21b-0008UB-1p for 21617@debbugs.gnu.org; Mon, 05 Oct 2015 05:25:40 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NVQ00000PXHGZ00@a-mtaout22.012.net.il> for 21617@debbugs.gnu.org; Mon, 05 Oct 2015 12:25:37 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVQ000OUQ6O0F60@a-mtaout22.012.net.il>; Mon, 05 Oct 2015 12:25:37 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107305 Archived-At: > Date: Mon, 5 Oct 2015 10:58:33 +0200 > From: Paul Pogonyshev > > By comparison, when run from Emacs M-x compile, Gradle starts daemon every > time, so all builds look like the first example above. However, if daemon > already exists (e.g. created by console run above), it will not be killed. > > File '~/.gradle/daemon/VERSION/daemon-PID.out.log' for daemons spawned after > M-x compile ends with this line: > > Daemon vm is shutting down... The daemon has exited normally or was terminated > in response to a user interrupt. > > When daemon is allowed to exist (e.g. when run from a normal console), log > receives this message instead: > > ... Daemon is idle, sleeping until state change or idle timeout at ... > > Additionally, I checked several other ways to run process from Emacs: > > * M-x eshell: daemon is killed, as with M-x compile > * M-x shell: daemon works properly > * M-!: daemon works properly > > So, it seems that Emacs has a way to keep daemons alive / not kill them, but it > is not used in compilation mode. I just tried M-x compile RET C-a C-k emacs -Q -daemon RET and that started a daemon which stayed up in the air and didn't exit or get killed. If you see the same on your system, then Gradle, whatever that is, is indeed somehow involved in this, because without it everything works as you expected. Also, you didn't tell which version of Emacs you used (I used the latest development sources).