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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mario Emmenlauer <mario(at)emmenlauer(dot)de>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0
Date: 2020-10-05 14:35:22
Message-ID: 1720575.1601908522@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Mario Emmenlauer <mario(at)emmenlauer(dot)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

In response to

Browse pgsql-general by date

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

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2020-10-05 14:46:17 Re: Online checksums patch - once again
Previous Message Fujii Masao 2020-10-05 14:34:05 Re: Use standard SIGHUP and SIGTERM handlers in autoprewarm module