Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntfm2-00015V-SV for pgsql-bugs@arkaria.postgresql.org; Wed, 25 May 2022 01:25:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntfm1-0008U7-OS for pgsql-bugs@arkaria.postgresql.org; Wed, 25 May 2022 01:25:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntfm1-0008Tv-GV for pgsql-bugs@lists.postgresql.org; Wed, 25 May 2022 01:25:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntflz-0002JV-8z for pgsql-bugs@lists.postgresql.org; Wed, 25 May 2022 01:25:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 24P1PEnt1773724; Tue, 24 May 2022 21:25:14 -0400 From: Tom Lane To: Michael Paquier cc: Julien Rouhaud , Mats Kindahl , pgsql-bugs@lists.postgresql.org Subject: Re: Use of signal-unsafe functions from signal handlers In-reply-to: References: <20220524101418.7pp65powa362vzln@jrouhaud> <20220524123739.6glyxyx4owqpqjnr@jrouhaud> <1531973.1653401755@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Wed, 25 May 2022 09:45:31 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1773722.1653441914.1@sss.pgh.pa.us> Date: Tue, 24 May 2022 21:25:14 -0400 Message-ID: <1773723.1653441914@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > Hmm. Shouldn't we worry about FloatExceptionHandler() that gets used > on SIGFPE? SIGFPE is generated synchronously, so that one's not really a problem, I think: it can only interrupt code that is doing trap-prone arithmetic. Anyway that code's been like that for ages and nobody has reported an issue there. regards, tom lane