From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Detaching after vfork from child process NNNNN] Date: Wed, 03 Jan 2024 14:53:00 +0200 Message-ID: <838r56zihf.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25201"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 03 13:54:26 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rL0lO-0006JW-0n for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Jan 2024 13:54:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rL0kW-0007wu-B4; Wed, 03 Jan 2024 07:53:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rL0kQ-0007vv-To for emacs-devel@gnu.org; Wed, 03 Jan 2024 07:53:27 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rL0kQ-0005Bd-I3 for emacs-devel@gnu.org; Wed, 03 Jan 2024 07:53:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=zkIRr9+0aHBUwB+OcUyw9vi9yMpqMK4IfaqLMSXL1vY=; b=eMSCheV28AFK G6AY6lsmASuVQccQuccuPU+elp5tic/7M65aNHWxDIAyGp1JdK86X/TgLvdu6QcZQPHG3Oz5BlFqP eq38FilOj3j1QbElIlB/b0uMUgeNPjW6uIP5JR+0qYhFn7/XBjrUFLtWcXfld47E3p/eGFVM2P2l9 I6GpB7ai51LVfmAknGRMlc61iHfE8GmgSW32NpQiQ9YZsn4+qcCWIT8w3xmMw0j1LvVEzK4fwasm0 Odux+4XBkjclJ4pdgDhOJvLDO0VvnvS7DQdQozTFl2p46F5rlze54YhxAkXml0+Br27aOxiqB3Yy9 0si256TAMF6qLAegW0SFFw==; In-Reply-To: (message from Richard Stallman on Tue, 02 Jan 2024 23:13:43 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314489 Archived-At: > From: Richard Stallman > 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.