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 1oC6Ty-000702-Bz for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Jul 2022 21:34:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oC6Tx-00011T-9D for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Jul 2022 21:34:49 +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 1oC6Tw-00011K-Vz for pgsql-hackers@lists.postgresql.org; Thu, 14 Jul 2022 21:34:49 +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 1oC6Tu-0005BL-RL for pgsql-hackers@lists.postgresql.org; Thu, 14 Jul 2022 21:34:47 +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 26ELYg613153248; Thu, 14 Jul 2022 17:34:42 -0400 From: Tom Lane To: Thomas Munro cc: Alvaro Herrera , Andres Freund , Pg Hackers Subject: Re: EINTR in ftruncate() In-reply-to: References: <20220714144652.jph7exiywushg4gc@alvherre.pgsql> <2835511.1657812444@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Fri, 15 Jul 2022 09:22:36 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3153246.1657834482.1@sss.pgh.pa.us> Date: Thu, 14 Jul 2022 17:34:42 -0400 Message-ID: <3153247.1657834482@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > So why would I add another wrapper like PG_SETMASK and leave it > unimplemented for now on Windows, when I could just use sigprocmask() > directly and leave it unimplemented for now on Windows? Fair enough, I guess. No objection to this patch. (Someday we oughta go ahead and make our Windows signal API look more like POSIX, as I suggested back in 2015. I'm still not taking point on that, though.) regards, tom lane