pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Andres Freund <andres@anarazel.de>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: issue with meson builds on msys2
Date: Mon, 15 May 2023 16:43:56 -0700
Message-ID: <20230515234356.7ysq7w6jjsofeunt@awork3.anarazel.de> (raw )
In-Reply-To: <20230515223028.gkctmcoe7jtd5mmw@awork3.anarazel.de >
References: <5bddd941-9819-6655-7a71-3f346050583e@dunslane.net >
<6efeb45a-07f9-2291-c8f8-9fb4abbb6ebc@dunslane.net >
<20230427221828.2qo7z4xb4f7islln@awork3.anarazel.de >
<236c0354-62b1-0ae1-a252-4c866bc1c5d6@dunslane.net >
<20230504235413.eibaxlxslo76ipjl@awork3.anarazel.de >
<2ff71af4-cdee-37b8-525a-2b25afd1769a@dunslane.net >
<20230515193817.ttx4qf3ceqeufls2@awork3.anarazel.de >
<26b0ebdb-3e7c-d562-620d-8e2f17286ff9@dunslane.net >
<20230515201326.tbjgfdef6ul6oqfd@awork3.anarazel.de >
<20230515223028.gkctmcoe7jtd5mmw@awork3.anarazel.de >
Hi,
On 2023-05-15 15:30:28 -0700, Andres Freund wrote:
> As soon as either the pg_ctl for the start, or the whole bash invocation, has
> stdin redirected, the problem vanishes.
For a moment I thought this could be related to InheritStdHandles() - but no,
it doesn't make a difference.
There's loads of handles referencing cygwin alive in pg_ctl.
Based on difference in strace output for bash -c "pg_ctl stop" for the case
where start redirected stdin (#1) and where not (#2), it looks like some part
of msys / cygwin sees that stdin is alive when preparing to execute "pg_ctl
stop", and then runs into trouble.
The way we start the child process on windows makes the use of cmd.exe for
redirection pretty odd.
I couldn't trivially reproduce this with a much simpler case (just nohup
sleep). Perhaps it's dependent on a wrapper cmd or such.
Greetings,
Andres Freund
view thread (24+ messages) latest in thread
Message-ID: <20230515234356.7ysq7w6jjsofeunt@awork3.anarazel.de>
Permalink: ../20230515234356.7ysq7w6jjsofeunt@awork3.anarazel.de/
Also on: postgresql.org/message-id/20230515234356.7ysq7w6jjsofeunt@awork3.anarazel.de
copy link · copy postgr.es
reply 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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de, andrew@dunslane.net, tgl@sss.pgh.pa.us, pgsql-hackers@lists.postgresql.org
Subject: Re: issue with meson builds on msys2
In-Reply-To: <20230515234356.7ysq7w6jjsofeunt@awork3.anarazel.de>
* 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