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 1lWri3-0001xN-OF for pgsql-committers@arkaria.postgresql.org; Thu, 15 Apr 2021 02:26:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lWrhy-0004Dj-1b for pgsql-committers@arkaria.postgresql.org; Thu, 15 Apr 2021 02:26:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWrhx-0004Db-SK for pgsql-committers@lists.postgresql.org; Thu, 15 Apr 2021 02:26:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWrhu-0004av-T9; Thu, 15 Apr 2021 02:26:17 +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 13F2QDxX3739817; Wed, 14 Apr 2021 22:26:13 -0400 From: Tom Lane To: Thomas Munro cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Use SIGURG rather than SIGUSR1 for latches. In-reply-to: References: Comments: In-reply-to Thomas Munro message dated "Mon, 01 Mar 2021 01:26:45 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3739815.1618453573.1@sss.pgh.pa.us> Date: Wed, 14 Apr 2021 22:26:13 -0400 Message-ID: <3739816.1618453573@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > Use SIGURG rather than SIGUSR1 for latches. I notice that postmaster.c still does #ifdef SIGURG pqsignal_pm(SIGURG, SIG_IGN); /* ignored */ #endif It appears to me that this should now read pqsignal_pm(SIGURG, dummy_handler); /* unused, reserve for children */ for the reasons explained in the comment for dummy_handler. It's possible that that argument doesn't apply to the way SIGURG is used in this patch, but I don't see a good reason to ignore the convention of setting up the handler this way. regards, tom lane