From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@postgresql.org
Subject: pgsql: Avoid and detect SIGPIPE race in TAP tests.
Date: Sat, 16 Dec 2017 18:05:36 +0000
Message-ID: <E1eQGq8-0000dV-5f@gemulon.postgresql.org> (raw)
Avoid and detect SIGPIPE race in TAP tests.
Don't write to stdin of a psql process that could have already exited
with an authentication failure. Buildfarm members crake and mandrill
have failed once by doing so. Ignore SIGPIPE in all TAP tests.
Back-patch to v10, where these tests were introduced.
Reviewed by Michael Paquier.
Discussion: https://postgr.es/m/20171209210203.GC3362632@rfd.leadboat.com
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/ac93acbc05be2ef995208c1ca17f8083f60ccc53
Modified Files
--------------
src/test/authentication/t/001_password.pl | 3 +--
src/test/authentication/t/002_saslprep.pl | 3 +--
src/test/perl/TestLib.pm | 4 ++++
3 files changed, 6 insertions(+), 4 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: noah@leadboat.com
Subject: Re: pgsql: Avoid and detect SIGPIPE race in TAP tests.
In-Reply-To: <E1eQGq8-0000dV-5f@gemulon.postgresql.org>
References: <E1eQGq8-0000dV-5f@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox