Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iZSgy-0004TK-SG for pgsql-committers@arkaria.postgresql.org; Tue, 26 Nov 2019 04:43:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iZSgx-0007k8-MV for pgsql-committers@arkaria.postgresql.org; Tue, 26 Nov 2019 04:43:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iZSgx-0007k1-CA for pgsql-committers@lists.postgresql.org; Tue, 26 Nov 2019 04:43:11 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iZSgu-00063e-N5 for pgsql-committers@lists.postgresql.org; Tue, 26 Nov 2019 04:43:10 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 14A4C226BC; Mon, 25 Nov 2019 23:43:08 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 25 Nov 2019 23:43:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=a9S+28eZct5XnAwwdsuFkj0AZ3o +o5mqH/n2q5Kc9tA=; b=lT2zi2ux2ssqPKUei18ujlVb06KzPMswSDIjFio85cs YhHM88f5l5CLqPeiUJV3TVoLoibN5GQtDO3o8ycCDoEiihrP5mXSS4X4+Hx90VU7 lPhlE8t2qspYbl7ay2OUNXyzEb9YgE8kGG/wIzeENWcEN4YN85e61dPQpPXtDt1e v2r6rbcv++bYggeSY1vGXgEnEG0Fla+y+hfvIEXwHQUszqcuFwWdOPP8DzJP4SyJ OwFgT+Gpi+WnZGvqpzsVVPaeK7nbOFlxlVx/4BTc6qmM2bRxDmDYC4r5e4iWwu6a 4ss4ba+dxEMHitI0s4/cAZ/PkKfGxZyYteJBsIVZFQQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=a9S+28 eZct5XnAwwdsuFkj0AZ3o+o5mqH/n2q5Kc9tA=; b=SIYN9+YwU+jab21r7pY9EG AJIOXwL3A8/JyYQxRLZp98DTH5106lguEYbnaE9TEDtWijzNJupdxCOlFg+r4SgR Ucos/7DfE7OrXUy4puKDebD5aJiGuOxTIoMBRG4GPwRP/Uf6LA14hi6l720cFryg 5VPgr2cDNWOx0FZg0lGb8n57XgVf0DzXgdRYhgvfH5b3iN+08d6pPhqOGYrcRy1/ 153eP4UI82LEnPsNSnvVLwkwOt/sl2SBTd9s8rabhnGeaJtNbFLmp5+bU5PpdydE jw31/qt9kM8dyWMiZdqWzqB8nqJvxJ5VKLxZ3pQNmRIsama0h+xuvdRVcCer+VJQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeivddgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucffohhmrghinhepphhoshhtghhrrdgvshenucfkphepuddu uddruddtvddrudektddrudekheenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrg gvlhesphgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id AC98E80061; Mon, 25 Nov 2019 23:43:06 -0500 (EST) Date: Tue, 26 Nov 2019 13:43:02 +0900 From: Michael Paquier To: Andrew Dunstan Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Close stdin where it's not needed in TestLib.pm procedures Message-ID: <20191126044302.GC5435@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XWOWbaMNXpFDWE00" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --XWOWbaMNXpFDWE00 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Andrew, On Mon, Nov 25, 2019 at 09:01:46PM +0000, Andrew Dunstan wrote: > Close stdin where it's not needed in TestLib.pm procedures >=20 > Where possible, do this using a pseudoterminal, so that things like > openssl that want to open /dev/tty if stdin isn't a tty won't. > Elsewhere, i.e. Windows, just close by providing an empty string using > the standard IPC::Run pipe mechanism. >=20 > Patch by Andrew Dunstan, based on an idea from Craig Ringer. >=20 > Reviewed by Mark Dilger. >=20 > Discussion: https://postgr.es/m/873ebb57-fc98-340d-949d-691b1810bf66@2ndQ= uadrant.com This one is causing failures with the TAP tests of initdb on all AIX animals and prairiedog: # Running: initdb --help Can't locate IO/Pty.pm in @INC (@INC contains: ../../../src/test/perl/ =2E /usr/local/perl5.8.3/lib/5.8.3/darwin-2level [...] Unexpected SCALAR(0x1987690) in harness() parameter 7 at =2E./../../src/test/perl//TestLib.pm line 692 -- Michael --XWOWbaMNXpFDWE00 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl3crVYACgkQnvQgOdby QH1kDxAAkNU5q/wxokXowl+Fdh9eSPMiovOJJeE17tGxFcW5zLSz0QT+1sPqYLfv i4k5P5oOMsSwfQqe0/dmyqlYDCVwGfzFLhndb+GVn32/0K8q/WJJ6Fp3B0UDL0DB AcdFPEtt7Ch+hnYPZfrx2lvHsdLE4/oACv1Ilcql6i8cVtH1FIFnRnJ98W+Dgp88 cSB9WiLGQfuD/e7bE5F4lnkWqOYNdQ9PdNZ6Qz8E1Qy5rA5/K/ZFh5Dk4PFzdY0e GhqQ6cjACWrl2AvbOAFUR2d36U8q06pDI/dMHO1aun4OcdWjx58YBCURC4jVGOQq jTFjSgcyQIgNIRYpVCFcpUp3B9nBjGelvu+RuO/aFylDwPDkBGoc7+3XaZxe896Q k2B5xE4zbaR0ob+LG2bmEWqrKkil0Bd+wNmSmqadRT7Rxv0pPZWLE33WrRb/tv4h cytp+vSAiOVIiRCMKEeySYrT3G8wsy3k9uSn1yDGc7ItaB8onAY6eMLrf+EX14nB x6VPElu6C5aT0Nw9MziofDkKoRlIRgSQ2bGlhFnsIC+Pnokc9DoaYfIHsnyZls/Y eZNAJKYe1PTCTNfyzaVsrgw9y3zRrlL7d9Kc7gW2rLqtdG0OYkX0/U/tuj+KgD5q 967vdYjz/QsQAnGa3yYfUEE+qOHLqGaCM/oUnrWgztZwo1keYpQ= =AQo9 -----END PGP SIGNATURE----- --XWOWbaMNXpFDWE00--