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 1tapSP-005XK1-SK for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Jan 2025 05:08:46 +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 1tapSO-00AEox-Us for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Jan 2025 05:08:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tapSO-00AEop-4c for pgsql-hackers@lists.postgresql.org; Thu, 23 Jan 2025 05:08:44 +0000 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tapSL-0012Ij-1l for pgsql-hackers@postgresql.org; Thu, 23 Jan 2025 05:08:43 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id A301D1380891; Thu, 23 Jan 2025 00:08:40 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Thu, 23 Jan 2025 00:08:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1737608920; x=1737695320; bh=hjuoQDTF2U 8Uuu5rGCMTKI5KcA184a6Vj0Ek23aSfp0=; b=CwWG4SyWtDRcmRbUCSD+UTI/w8 XLU2sdCdjMmlYzg7d/dJomuDfpVWSPuLr4OP/BXtSy55DV/GPzHOzVuDxpLXmu0p kFtWIWV2siJbgkLLzy4IFxIux5qsiePwnASTjbCQAbYkCvdiAPSUYrYcsqtYtH93 agd6oU9uKfGfLeGX0gGu5SzHierH7WjjlltN6uyK5FfxCj0GNllDqx5fAeQuxY7W QL6UkGb2+2PFJvvjhcfp+iwT0rpCfFWTOaBmkRUQFizSIYhTA++ju3PTmbC00VAB x/+Mf0Ta6vHdQHpgZEHUi0Kejtd7yOvjJ2mTle4D46VEj5aWG34uv5zgsBiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1737608920; x=1737695320; bh=hjuoQDTF2U8Uuu5rGCMTKI5KcA184a6Vj0E k23aSfp0=; b=rAqPuDE2wDsVEqmDw2SEGVbesnUy8yddyaNN+IJMctjB1kKswX9 NPuAIy8yxGSoYowbbsY78aWMiO0qUJnXh+7ylljZQ7Ceagm5gl/vl2ZH4uU+HCh9 NvSNfihiMUoHik0FqBOrK4XA/IeePTaP6iKo84uunYDkMDZz/Vd68XELTEAaExSO DqrL/Z2gjeHwUEDmiFIkYyoQaGS5Zs2T3VfgxapascpXW500A9IHPt/cR92XFFUN w9aT66B4EBMQ2Xw/Ba219iPX8skjizBG/Mh32Zpz14QoXqWd7QUntH4/HAhchgQp qSIkI7YlMgwxFYCK1wLSUD1/KoZBobHsobQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejgedgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnegfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhf gggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruc eomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepgeff jeevgfevuddvjedtvddtieejheduueelvddufedtgfefjedvkeevkeeivddvnecuffhomh grihhnpehpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipd hnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehprhgr mhhsvgihsegtlhgvvhgvrhgvlhgvphhhrghnthdrtggrpdhrtghpthhtoheprghnughrvg hssegrnhgrrhgriigvlhdruggvpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshes phhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepnhgrthhhrghnuggsohhsshgrrh htsehgmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Jan 2025 00:08:38 -0500 (EST) Date: Thu, 23 Jan 2025 14:08:26 +0900 From: Michael Paquier To: Paul Ramsey Cc: Andres Freund , PostgreSQL Hackers , Nathan Bossart Subject: Re: Converting pqsignal to void return Message-ID: References: <4E796D56-79B5-4447-9DA7-5428BC1A6B53@cleverelephant.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cfEz+K1OJQIAz+3m" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --cfEz+K1OJQIAz+3m Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jan 22, 2025 at 09:01:09AM -0800, Paul Ramsey wrote: > This is the Knowledge that was sitting right in front of me, but I could not see. > From the road to Damascus, Note also that there is some documentation showing how to write a signal handler and what should not be done: https://www.postgresql.org/docs/devel/source-conventions.html#SOURCE-CONVENTIONS-SIGNAL-HANDLERS See also 0da096d78e1e, in the same spirit. -- Michael --cfEz+K1OJQIAz+3m Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmeRzsoACgkQnvQgOdby QH2QWBAAiJoBf1JryMAPOg2bvBkKrT1g1p/JpcNBbE3fg5MsbjLa0tHw5+MkiTVF tczrY07IQ7G82w3jWRGUzbO37FttJrTXHfd2xlaBLWHa5iXRdUiVRmyPOshkfKGv WJ57mwrswHeTd0No/68U45SrXrgfVmrMhUX0mrJLHGZNOy/viCrOyORonnH/u8Wm GuuMRFQr+bpFb5brVxrBZmv5PTzWvHHCn1cgqgctXdQxVzHS4AeWI1WcNvOg3N/6 wqM0b3FL+MDfQNi91xLbDQYk0uDb2+qS0dSGliNATaqOVazvLBTgh0h0q+ab3O5n QxaYhHIdMn+YP7GeEYyVfADAoY/252uALtYYhxGjpNXN76rgcuMb232fOqm7u19A RzKcxAsifimD4/dIYcma2ZpNmSxVMGlUXBbhL9G6ZJRLp7HrWPzCz4Ml39QXv9q/ d6XK7+rNnbr1D4aoQ+E9IqLEyUzqol+ubihEGjysIDzlzcatxDSLpdFYkz7COhwO H8bgJ2K4fu3FZ9zInAGS/hikoATtzee14LPeDPO9ux2tLd9T+RIRMnOMzTRof4yV NmV7sFuy7RkWfabpard0f+O0/Vx8W+pfTI4T2XVKJVDjVcyakJJPvB/KUmUxfREd SINkLO7hI9zLfDE1tIn2wX7EWG24qGGOBUsELF8WgFwrLCNrHwc= =Fky1 -----END PGP SIGNATURE----- --cfEz+K1OJQIAz+3m--