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: Opportunistic GC Date: Thu, 11 Mar 2021 11:34:22 +0200 Message-ID: <83tupim3tt.fsf@gnu.org> References: <83tuplr2l8.fsf@gnu.org> <838s6uohv2.fsf@gnu.org> <83y2eum6g8.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8488"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, akrl@sdf.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 11 10:36:34 2021 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 1lKHkA-00026o-Jn for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Mar 2021 10:36:34 +0100 Original-Received: from localhost ([::1]:59774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKHk9-0002La-MA for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Mar 2021 04:36:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKHi8-0000q2-Hm for emacs-devel@gnu.org; Thu, 11 Mar 2021 04:34:28 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58562) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKHi6-00014I-9v; Thu, 11 Mar 2021 04:34:26 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2545 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lKHi4-0006LK-H0; Thu, 11 Mar 2021 04:34:25 -0500 In-Reply-To: (message from Pip Cet on Thu, 11 Mar 2021 09:03:23 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:266322 Archived-At: > From: Pip Cet > Date: Thu, 11 Mar 2021 09:03:23 +0000 > Cc: Stefan Monnier , Andrea Corallo , emacs-devel@gnu.org > > > See thread_select. > > I have no intention of calling thread_select. If you call wait_reading_process_output, or any of its callers (such as accept-process-output or sleep-for), Emacs _will_ call thread_select. > > We don't call pselect directly. > > In this case, we should. I don't see a problem with that, as the child > Emacs does not need to perform other I/O. If you want to do that for any of the above-mentioned calls, you will have to modify the code of wait_reading_process_output.