Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0 - Mailing list pgsql-general

From Tom Lane
Subject Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0
Date
Msg-id 1720575.1601908522@sss.pgh.pa.us
Whole thread Raw
In response to dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0  (Mario Emmenlauer <mario@emmenlauer.de>)
List pgsql-general
Mario Emmenlauer <mario@emmenlauer.de> writes:
> I get reproducibly the error:
> 2020-10-05 11:48:19.720 CEST [84731] WARNING:  dup(0) failed after 0 successes: Bad file descriptor

Hmph.  That code loop assumes that stdin exists to be duplicated,
but maybe if it had been closed, you'd get this error.

However, that logic hasn't changed in decades, and we've not heard
complaints about it before.  Are you starting the server in some
unusual way?

            regards, tom lane



pgsql-general by date:

Previous
From: Thorsten Schöning
Date:
Subject: Re: What's your experience with using Postgres in IoT-contexts?
Next
From: Mario Emmenlauer
Date:
Subject: Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0