Re: File descriptors in exec'd subprocesses

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: pgsql-hackers@lists.postgresql.org, Thomas Munro <thomas.munro@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-02-05T14:29:33Z
Lists: pgsql-hackers
Hi, 

Unsurprisingly I'm in favor of this. 

On February 5, 2023 1:00:50 AM GMT+01:00, Thomas Munro <thomas.munro@gmail.com> wrote:
>Are there any more descriptors we need to think about?

Postmaster's listen sockets? Saves a bunch of syscalls, at least. Logging collector pipe write end, in backends?

Greetings,

Andres

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Commits

  1. libpq: Use modern socket flags, if available.

  2. Don't leak descriptors into subprograms.

  3. Remove obsolete coding for early macOS.

  4. Adjust commit 2dbe8905 for ancient macOS.