Re: [PATCH] O_CLOEXEC not honored on Windows - handle inheritance chain - Mailing list pgsql-hackers

From Bryan Green
Subject Re: [PATCH] O_CLOEXEC not honored on Windows - handle inheritance chain
Date
Msg-id 7412f694-7c57-41e5-ae37-71136070b0da@gmail.com
Whole thread Raw
In response to Re: [PATCH] O_CLOEXEC not honored on Windows - handle inheritance chain  (Bryan Green <dbryan.green@gmail.com>)
Responses Re: [PATCH] O_CLOEXEC not honored on Windows - handle inheritance chain
List 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
Attachment

pgsql-hackers by date:

Previous
From: Robert Treat
Date:
Subject: Re: another autovacuum scheduling thread
Next
From: Masahiko Sawada
Date:
Subject: Re: [PATCH] Add hints for invalid binary encoding names in encode/decode functions