Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6bbR-00EA46-IN for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Oct 2024 20:17:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t6bbP-005lkg-Kt for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Oct 2024 20:17:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6bbP-005lkY-Cf for pgsql-bugs@lists.postgresql.org; Thu, 31 Oct 2024 20:17:07 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6bbM-0043n6-4U for pgsql-bugs@lists.postgresql.org; Thu, 31 Oct 2024 20:17:05 +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 49VKGn1v1426961; Thu, 31 Oct 2024 16:16:49 -0400 From: Tom Lane To: Bastien =?ISO-8859-1?Q?Roucari=E8s?= cc: pgsql-bugs@lists.postgresql.org, Heikki Linnakangas Subject: Re: Detection of hadware feature => please do not use signal In-reply-to: <193820057.q8YS0ZdlI3@portable-bastien> References: <4496616.iHFcN1HehY@portable-bastien> <193820057.q8YS0ZdlI3@portable-bastien> Comments: In-reply-to Bastien =?ISO-8859-1?Q?Roucari=E8s?= message dated "Thu, 31 Oct 2024 17:42:09 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1426959.1730405809.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 31 Oct 2024 16:16:49 -0400 Message-ID: <1426960.1730405809@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bastien =3D?ISO-8859-1?Q?Roucari=3DE8s?=3D writes: > Le jeudi 31 octobre 2024, 17:29:45 UTC Heikki Linnakangas a =C3=A9crit : >> Why is it bad? > for a binary it is maybe safe for a library it is unsafe in Multi thread= context to capture signal... [ shrug... ] If we're concerned about that, we should hardly be less concerned on other platforms than we are on Linux. (AFAIK, we do not execute the code in question in any libraries.) regards, tom lane