From: Eli Zaretskii <eliz@gnu.org>
To: Paul Pogonyshev <pogonyshev@gmail.com>
Cc: 21617@debbugs.gnu.org
Subject: bug#21617: Emacs compilation mode prevents child processes from spawning/forking daemons
Date: Mon, 05 Oct 2015 12:25:36 +0300 [thread overview]
Message-ID: <83pp0tzmy7.fsf@gnu.org> (raw)
In-Reply-To: <CAG7BpaqKornYbZ=SYvGopw9tj+VrByRjYLQUigror76kBsg5CQ@mail.gmail.com>
> Date: Mon, 5 Oct 2015 10:58:33 +0200
> From: Paul Pogonyshev <pogonyshev@gmail.com>
>
> 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).
next prev parent reply other threads:[~2015-10-05 9:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-05 8:58 bug#21617: Emacs compilation mode prevents child processes from spawning/forking daemons Paul Pogonyshev
2015-10-05 9:25 ` Eli Zaretskii [this message]
2015-10-05 9:43 ` Paul Pogonyshev
2016-06-14 21:51 ` Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83pp0tzmy7.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=21617@debbugs.gnu.org \
--cc=pogonyshev@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).