unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.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 14:48:13 +0300	[thread overview]
Message-ID: <83sg3djmgy.fsf@gnu.org> (raw)
In-Reply-To: <m3r1ixby4w.fsf@leonis4.robolove.meer.net> (message from Madhu on Mon, 26 Apr 2021 07:33:27 +0530)

> From: Madhu <enometh@meer.net>
> Date: Mon, 26 Apr 2021 07:33:27 +0530
> 
> Fmalloc_info writes to stderr, which is closed in a daemonized emacs.

AFAIU, this happens only in the background daemon.  So using a
foreground daemon should allow you to redirect the output to a file.

> A new logfile argument to emacs

I don't see a reason to add a new knob, when there is already a
solution.  This is a diagnostic feature, so even if the daemon didn't
have a solution at all, I would hesitate adding a new option: you can
always run Emacs normally, and any serious memory related problem will
show itself in that configuration as well.



  reply	other threads:[~2021-04-26 11:48 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 [this message]
2021-04-26 12:00 ` Gregory Heytings

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=83sg3djmgy.fsf@gnu.org \
    --to=eliz@gnu.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).