From: Gregory Heytings <gregory@heytings.org>
To: Madhu <enometh@meer.net>
Cc: emacs-devel@gnu.org
Subject: Re: emacs --daemon and M-x malloc-info
Date: Mon, 26 Apr 2021 12:00:50 +0000 [thread overview]
Message-ID: <770e3441229789ef1746@heytings.org> (raw)
In-Reply-To: <m3r1ixby4w.fsf@leonis4.robolove.meer.net>
>
> Fmalloc_info writes to stderr, which is closed in a daemonized emacs.
> How best to handle this? A new logfile argument to emacs or is there
> some simple (if ugly) hack?
>
On GNU/Linux systems, I would simply use "nohup emacs --fg-daemon &",
which starts the daemon in foreground, detaches it from the terminal, and
writes the output to a "nohup.out" file. Or "nohup emacs --fg-daemon &>
emacs-daemon.log &" to redirect output to the file "emacs-daemon.log"
instead of "nohup.out".
prev parent reply other threads:[~2021-04-26 12:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-26 2:03 emacs --daemon and M-x malloc-info Madhu
2021-04-26 11:48 ` Eli Zaretskii
2021-04-26 12:00 ` Gregory Heytings [this message]
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=770e3441229789ef1746@heytings.org \
--to=gregory@heytings.org \
--cc=emacs-devel@gnu.org \
--cc=enometh@meer.net \
/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).