Re: Safeguards against incorrect fd flags for fsync() - Mailing list pgsql-hackers

From Michael Banck
Subject Re: Safeguards against incorrect fd flags for fsync()
Date
Msg-id 68489f0b.050a0220.21ce72.f4b3@mx.google.com
Whole thread Raw
In response to Safeguards against incorrect fd flags for fsync()  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Hi,

one more thing:

On Tue, Jun 10, 2025 at 12:26:48PM +0200, Michael Banck wrote:
> The better way might be to mask the flags with O_ACCMODE and then just
> check what you want, like in the attached.

I forgot to mention it in the patch, but Samuel Thibault reviewed the
patch and suggested improvements to the point where he should probably
be credited as co-author but at least as reviewer should this be
accepted.


Michael



pgsql-hackers by date:

Previous
From: Michael Banck
Date:
Subject: Re: Cleaning up historical portability baggage
Next
From: Tom Lane
Date:
Subject: Re: Cleaning up historical portability baggage