Re: [PATCH] O_CLOEXEC not honored on Windows - handle inheritance chain

Поиск
Список
Период
Сортировка
От Bryan Green
Тема Re: [PATCH] O_CLOEXEC not honored on Windows - handle inheritance chain
Дата
Msg-id 7412f694-7c57-41e5-ae37-71136070b0da@gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] O_CLOEXEC not honored on Windows - handle inheritance chain  (Bryan Green <dbryan.green@gmail.com>)
Ответы Re: [PATCH] O_CLOEXEC not honored on Windows - handle inheritance chain
Список pgsql-hackers
On 11/7/2025 11:28 AM, Bryan Green wrote:
> On 11/6/2025 8:42 AM, Bryan Green wrote:
>> On 11/6/2025 7:43 AM, Thomas Munro wrote:
...
>> So the plan would be:
>>
>> Backport branches (v16+):
>> #define O_DIRECT    0x80000000
>> #define O_CLOEXEC   0x04000000
>> #define O_DSYNC     _O_NO_INHERIT
>>
>> Master:
>> #define O_DIRECT    0x80000000
>> #define O_DSYNC     0x04000000
>> #define O_CLOEXEC   _O_NO_INHERIT
>>
>> And then in pgwin32_open():
>>     sa.bInheritHandle = (fileFlags & O_CLOEXEC) ? FALSE : TRUE;
>>
>> I will prepare a new version of the patch that implements the suggested
>> change for master.
>>
>>
> The changes for master, along with a tap test, are provided with the
> attached patch.
> 

Thanks to CI discovered a mistake in the makefile and meson.build file
for the tests. New patch attached.
-- 
Bryan Green
EDB: https://www.enterprisedb.com
Вложения

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