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 1ouxJC-0001g9-H2 for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Nov 2022 14:53:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ouxJB-0000H8-4o for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Nov 2022 14:53:05 +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 1ouxJ9-0000Gy-Te for pgsql-hackers@lists.postgresql.org; Tue, 15 Nov 2022 14:53:04 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ouxJ4-0002GU-PN for pgsql-hackers@lists.postgresql.org; Tue, 15 Nov 2022 14:53:03 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id ADBFB5C0048; Tue, 15 Nov 2022 09:52:56 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 15 Nov 2022 09:52:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1668523976; x=1668610376; bh=d 69d+WPD1sm2qIKCN46DbaHmNnBJbdbFU1jTTK0UOwc=; b=WWlsw9zf5O2Q5L/yv E1vArffe0SN7N7t83bFKbHruiAsdzQtUXnSL3aiqIUmNzbqq24KY3SmSCdDh3d5m uIOpPZBULxB/iCAGG7DS6yG0ZfzGhl6w+x/l2Vr12BRU1NMecPttoQu3idOLlydb tv06ay52nutyGnqsy9pnpDwwgZPU6MRXvjmibMkPVHEOAM2snQA9CnatlRKfQsSf 1C8wa0uQUdwMYh4oXlK2kF2gV7NJzafAmL8P6XPnVA4Nnh/rDj25iH4uN3GKSRVY dWAfmD/zlTJNtkH4Hs8uJV0j4B8zFE2gKgeIcKEDn4M9a7EUXWuiNPRNoD76TBSU NMGBA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgeeggdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthejre dttdefjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdr vghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomheqnecuggftrfgrth htvghrnhepfeejgeehteeuhfevveduleeufedtjeetiefftedvudfhtdeifefgueettdev gefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepph gvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Nov 2022 09:52:55 -0500 (EST) Message-ID: Date: Tue, 15 Nov 2022 15:52:54 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: Check return value of pclose() correctly Content-Language: en-US To: Ankit Kumar Pandey , pgsql-hackers@lists.postgresql.org References: <8cd9fb02-bc26-65f1-a809-b1cb360eef73@enterprisedb.com> <175ef638-32c7-1a84-590c-6df7497baeea@enterprisedb.com> <166740281339.1122.15508017124113465236.pgcf@coridan.postgresql.org> From: Peter Eisentraut In-Reply-To: <166740281339.1122.15508017124113465236.pgcf@coridan.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 02.11.22 16:26, Ankit Kumar Pandey wrote: > The following review has been posted through the commitfest application: > make installcheck-world: tested, passed > Implements feature: tested, passed > Spec compliant: tested, passed > Documentation: tested, passed > > Hi Peter, > This is a review of the pclose return value check patch: > > Contents & Purpose: > Purpose of this patch is to properly handle return value of pclose (indirectly, return from ClosePipeStream). > > Initial Run: > The patch applies cleanly to HEAD. The regression tests all pass > successfully against the new patch. > > Conclusion: > At some places pclose return value is handled and this patch adds return value check for remaining values. > Implementation is in sync with existing handling of pclose. Committed. Thanks for the review.