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

Поиск
Список
Период
Сортировка
От Mario Emmenlauer
Тема Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0
Дата
Msg-id 7833d5f1-d4af-40fe-f3c0-bcc49de36fba@emmenlauer.de
обсуждение исходный текст
Ответ на Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 03.09.21 01:00, Tom Lane wrote:
> Mario Emmenlauer <mario@emmenlauer.de> 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
> failure.  However, after changing fd.c to dup stderr not stdin,
> we can pass check-world even with that in place.  So that confirms
> that there is no very good reason for the postmaster to require
> stdin to be available.
> 
> Hence, I pushed the fix to make fd.c use stderr here.  I only
> back-patched to v14, because given the lack of other complaints,
> I couldn't quite justify touching stable branches for this.

Thanks a lot Tom, its appreciated!

All the best,

    Mario Emmenlauer



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: SQL:2011 application time
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: [Proposal] Fully WAL logged CREATE DATABASE - No Checkpoints