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: scratch/sigchld-fd 8f0ce42 1/2: Fix deadlock when receiving SIGCHLD during 'pselect'. Date: Wed, 20 Jan 2021 10:52:07 +0200 Message-ID: <504E9D30-9AB0-4AF7-A128-66AB17983B67@gnu.org> References: <20210116184947.2105.45267@vcs0.savannah.gnu.org> <20210116184949.3C17C211A5@vcs0.savannah.gnu.org> <834kjd7yk5.fsf@gnu.org> <83turc7n93.fsf@gnu.org> <871regr6x5.fsf@igel.home> <83r1mg6zy2.fsf@gnu.org> <87pn20vwac.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33747"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: phst@google.com, p.stephani2@gmail.com To: emacs-devel@gnu.org,Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 20 09:53:15 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 1l29Ep-0008hR-Hy for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Jan 2021 09:53:15 +0100 Original-Received: from localhost ([::1]:60398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l29Eo-0001nJ-Jo for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Jan 2021 03:53:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l29Dq-0000hw-7e for emacs-devel@gnu.org; Wed, 20 Jan 2021 03:52:14 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46751) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l29Dp-0000Qi-DR; Wed, 20 Jan 2021 03:52:13 -0500 Original-Received: from [2a02:14f:1:1c8c::1] (port=48226) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1l29Do-0003wJ-OS; Wed, 20 Jan 2021 03:52:13 -0500 In-Reply-To: <87pn20vwac.fsf@igel.home> 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:263198 Archived-At: On January 20, 2021 10:37:31 AM GMT+02:00, Andreas Schwab wrote: > On Jan 20 2021, Eli Zaretskii wrote: >=20 > > AFAIU, this is an issue for programs that install a SIGCHLD handler > > immediately before calling pselect=2E But Emacs has a SIGCHLD handler > > installed at all times, so if the signal hits outside of the pselect > > call, we should be able to detect that reliably=2E >=20 > No, the race between checking for the signal and entering pselect > still > exists=2E Please tell more, especially what is meant by "checking for the signal"=2E= We have a handler installed, so who is or should be checking for it?