Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fm3GM-0003gW-6K for pgsql-committers@arkaria.postgresql.org; Sat, 04 Aug 2018 20:34:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fm3GK-00038d-79 for pgsql-committers@arkaria.postgresql.org; Sat, 04 Aug 2018 20:34:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fm3GF-0002gd-6D for pgsql-committers@lists.postgresql.org; Sat, 04 Aug 2018 20:34:51 +0000 Received: from mahout.postgresql.org ([2001:4800:1501:1::227]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fm3G7-0006Bs-PN for pgsql-committers@lists.postgresql.org; Sat, 04 Aug 2018 20:34:49 +0000 Received: from gemulon.postgresql.org ([2001:4800:1501:1::198]) by mahout.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fm3G5-0003CO-Ds for pgsql-committers@lists.postgresql.org; Sat, 04 Aug 2018 20:34:41 +0000 Received: from git by gemulon.postgresql.org with local (Exim 4.89) (envelope-from ) id 1fm3G4-0003Ht-3C for pgsql-committers@lists.postgresql.org; Sat, 04 Aug 2018 20:34:40 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 To: pgsql-committers@lists.postgresql.org From: Michael Paquier Subject: pgsql: Reset properly errno before calling write() Message-Id: Date: Sat, 04 Aug 2018 20:34:40 +0000 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk UmV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