Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcGOp-0005jV-0X for pgsql-committers@arkaria.postgresql.org; Mon, 31 Jul 2017 19:30:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dcGOn-0002TJ-Se for pgsql-committers@arkaria.postgresql.org; Mon, 31 Jul 2017 19:30:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dcGOm-0002PJ-Uk for pgsql-committers@postgresql.org; Mon, 31 Jul 2017 19:30:41 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dcGOk-0000yI-B5 for pgsql-committers@postgresql.org; Mon, 31 Jul 2017 19:30:39 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C2377209B6; Mon, 31 Jul 2017 15:30:36 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Mon, 31 Jul 2017 15:30:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=Yw3wcXGC0qLWAcGvrslPIhib1vCiwmRfZ4GcCOHin5I=; b=qN/JMFLT oBp/hZAyXWz3XrhRW8osBlnpDy5z8hn+74xMe94qFmyASZjO/97Lbfa3u/qSMGrw wiMK86NYOxova03YCLKX0enf6h4lEyF43x3HuG5T8BuBrjJQxyw7HeyBmkiRbzw8 a6zrLz4PVWl4NGxEH1W9nFg1wO8fTfHZ0bx/vlY10rAMlwGZ/76cm+Llabpc+/rq +Ef+eV2umci9QsZtgjM2ZS4wIR9LFPIjbKxVqv/b/IL9ynfqA1qNhKzab5WsjMbk 6v5Xy0UsEy89uE8oA+lkOl+hf5IfBEOu54SYiX2xlMFNgJkxITU6yF1sgCrVvN/l vdkG2fKW78Emcw== X-ME-Sender: X-Sasl-enc: zqRyeU2LiWfLBkM00wTcO9vUxwJDaEMhBbMQrvT2S+Iv 1501529436 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 766E7241DF; Mon, 31 Jul 2017 15:30:36 -0400 (EDT) Subject: Re: pgsql: Work around Msys weakness in Testlib.pm's command_like() To: Andrew Dunstan , pgsql-committers@postgresql.org References: From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <8123c31c-5e70-caf7-76ed-6d9d5cd5b8a3@2ndquadrant.com> Date: Mon, 31 Jul 2017 15:30:35 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 7/26/17 22:49, Andrew Dunstan wrote: > Work around Msys weakness in Testlib.pm's command_like() > > When output of IPC::Run::run () is redirected to scalar references, in > certain circumstances the Msys perl does not correctly detect that the > end of file has been seen, making the test hang indefinitely. One such > circumstance is when the command is 'pg_ctl start', and such a change > was made in commit f13ea95f9e. The workaround, which only applies on > MSys, is to redirect the output to temporary files and then read them in > when the process has finished. This commit message contains interesting information that would be useful to record in a code comment. Otherwise it's not really clear when or why to use the "safe" variant. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers