Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0

2021-09-05 Thread Mario Emmenlauer
On 03.09.21 01:00, Tom Lane wrote: > Mario Emmenlauer writes: >> The idea to switch to dup(2) sounds very good to me. > > I poked at this some more, and verified that adding "fclose(stdin);" > at the head of PostmasterMain is enough to trigger the reported > fa

Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0

2021-09-01 Thread Mario Emmenlauer
On 01.09.21 15:54, Tom Lane wrote: > Mario Emmenlauer writes: >> On 05.10.20 14:35, Tom Lane wrote: >>> Mario Emmenlauer writes: >>>> I get reproducibly the error: >>>> 2020-10-05 11:48:19.720 CEST [84731] WARNING: dup(0) failed after 0 >>>