Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0 |
| Дата | |
| Msg-id | 2440671.1630623646@sss.pgh.pa.us обсуждение |
| Ответ на | Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0 (Mario Emmenlauer <mario@emmenlauer.de>) |
| Ответы |
Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0
|
| Список | pgsql-hackers |
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.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера