Re: File descriptors in exec'd subprocesses
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org, Thomas Munro <thomas.munro@gmail.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-02-05T16:06:13Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > 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? I wonder whether O_CLOEXEC on that would be inherited by the client-communication sockets, though. That's fine ... unless you are doing EXEC_BACKEND. regards, tom lane
Commits
-
libpq: Use modern socket flags, if available.
- bfc9497ece01 16.0 landed
-
Don't leak descriptors into subprograms.
- 1da569ca1f1f 16.0 landed
-
Remove obsolete coding for early macOS.
- a1f45f69bbfc 16.0 landed
-
Adjust commit 2dbe8905 for ancient macOS.
- 04cad8f7bcd6 15.0 cited