emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Detaching after vfork from child process NNNNN]


From: Eli Zaretskii
Subject: Re: [Detaching after vfork from child process NNNNN]
Date: Wed, 03 Jan 2024 14:53:00 +0200

> From: Richard Stallman <rms@gnu.org>
> Date: Tue, 02 Jan 2024 23:13:43 -0500
> 
> I just started using the latest master to edit with, and actions that
> create subprocesses often display
> 
>    [Detaching after vfork from child process NNNNN]
> 
> on the tty which is Emacs's output device.  This is quite invonenient
> when doing normal editing with Emacs running under GDB.

This is a message from GDB.

> I turned those messages off by adding the line
> 
>   set print inferior-events off
> 
> to src/.gdbinit.
> 
> Is it really right for the printing of those events to be enabled by
> default?

IMO yes, since inferior-events include process start and exit, and
those events are important in general when debugging.

> How about adding that line to .gdbinit by default,
> with a comment explaining what would result form deleting it?

I don't think it's a good idea to do that for everyone here.  I, for
one, want to see these events announced.  You can, of course, add this
to your personal ~/.gdbinit.

It might also be a good idea to extend the "set detach-on-fork"
command in GDB to allow more fine-grained control, including shutting
down the announcement of the detachment.  If you think this is a good
idea, I suggest to talk to the GDB developers or maybe even suggest a
patch to them.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]