From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#21617: Emacs compilation mode prevents child processes from spawning/forking daemons Date: Mon, 5 Oct 2015 10:58:33 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bf17eeadb208a052157b7fe X-Trace: ger.gmane.org 1444035571 2500 80.91.229.3 (5 Oct 2015 08:59:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2015 08:59:31 +0000 (UTC) To: 21617@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 05 10:59:23 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 1Zj1cA-0007Ua-FC for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 10:59:22 +0200 Original-Received: from localhost ([::1]:44874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj1c8-0007NA-Cw for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 04:59:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj1bs-0007Mh-4j for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 04:59:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj1bq-0002Yx-TN for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 04:59:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj1bq-0002Yt-Pk for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 04:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zj1bq-0007rr-L0 for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 04:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2015 08:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21617 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144403552130214 (code B ref -1); Mon, 05 Oct 2015 08:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Oct 2015 08:58:41 +0000 Original-Received: from localhost ([127.0.0.1]:54837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj1bU-0007rF-Rs for submit@debbugs.gnu.org; Mon, 05 Oct 2015 04:58:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60609) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj1bS-0007r7-K0 for submit@debbugs.gnu.org; Mon, 05 Oct 2015 04:58:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj1bR-0002LU-9B for submit@debbugs.gnu.org; Mon, 05 Oct 2015 04:58:38 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj1bR-0002LJ-66 for submit@debbugs.gnu.org; Mon, 05 Oct 2015 04:58:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj1bQ-0007Lh-5W for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 04:58:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj1bP-0002Hu-6O for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 04:58:36 -0400 Original-Received: from mail-ig0-x230.google.com ([2607:f8b0:4001:c05::230]:38284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj1bP-0002GK-0e for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 04:58:35 -0400 Original-Received: by igxx6 with SMTP id x6so52722386igx.1 for ; Mon, 05 Oct 2015 01:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=mycewYDuWcAbaiXOBfdWJarMKejGQKTns03GHSo4jCQ=; b=TohoWCMVnw/OzYSuBhQOX5QWEZmp4rjWFZuMMj/HhNsyECtaTxrRVMz0LuJ/80Y/E9 5Ku0uesd8p2+MwrUi1K28X+/J/GHJWicUoD0/B4vbbsp7qzAX3m0osY1Nf4+WR0lavI2 DGtofFXVSjGHSZo9ZPNteZZpQqvHs6f+Hjmz95ZtwB1JgbnTEAI0FG24nk+njID6QCFz dN/aFupYpmwjN1SAsapAkbKcANeDjPm0uZd99+nrJPTRxe2nQ/kHNCfuk2/2xR3Jt4OZ jPNsOM1L85jc82KkctUQadf6ll6dZogQNG2L+PHbSvL3tRapUEQOqZjIty/+HC31hrtM sK6g== X-Received: by 10.50.87.69 with SMTP id v5mr8544233igz.2.1444035514013; Mon, 05 Oct 2015 01:58:34 -0700 (PDT) Original-Received: by 10.36.25.67 with HTTP; Mon, 5 Oct 2015 01:58:33 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:107303 Archived-At: --047d7bf17eeadb208a052157b7fe Content-Type: text/plain; charset=UTF-8 This can be reproduced with Gradle, but you don't need a Gradle project for this. When running from a normal console: $ gradle Starting a new Gradle Daemon for this build (subsequent builds will be faster). :help ... Total time: 2.014 secs Now if I repeat it, the daemon is reused, so the first message is gone and the "build" goes much faster: $ gradle :help ... Total time: 0.495 secs 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. Paul --047d7bf17eeadb208a052157b7fe Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: base64 PGRpdiBkaXI9Imx0ciI+PGRpdj48ZGl2PjxkaXY+PGRpdj48ZGl2PlRoaXMgY2FuIGJlIHJlcHJv ZHVjZWQgd2l0aCBHcmFkbGUsIGJ1dCB5b3UgZG9uJiMzOTt0IG5lZWQgYSBHcmFkbGUgcHJvamVj dCBmb3IgdGhpcy4gV2hlbiBydW5uaW5nIGZyb20gYSBub3JtYWwgY29uc29sZTo8Y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