Re: File descriptors in exec'd subprocesses
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-02-20T12:13:57Z
Lists: pgsql-hackers
Attachments
- v3-0001-Don-t-leak-descriptors-into-subprograms.patch (text/x-patch) patch v3-0001
- v3-0002-Use-accept4-to-accept-connections-where-available.patch (text/x-patch) patch v3-0002
- v3-0003-Use-newer-client-socket-options-where-available.patch (text/x-patch) patch v3-0003
I had missed one: the "watch" end of the postmaster pipe also needs FD_CLOEXEC.
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