postgresql/src/backend/postmaster
Heikki Linnakangas b0bea38705 Use FD_CLOEXEC on ListenSockets
It's good hygiene if e.g. an extension launches a subprogram when
being loaded. We went through some effort to close them in the child
process in EXEC_BACKEND mode, but it's better to not hand them down to
the child process in the first place. We still need to close them
after fork when !EXEC_BACKEND, but it's a little simpler.

In the passing, LOG a message if closing the client connection or
listen socket fails. Shouldn't happen, but if it does, would be nice
to know.

Reviewed-by: Tristan Partin, Andres Freund, Thomas Munro
Discussion: https://www.postgresql.org/message-id/7a59b073-5b5b-151e-7ed3-8b01ff7ce9ef@iki.fi
2023-08-24 17:03:05 +03:00
..
Makefile Redesign archive modules 2023-02-17 14:26:42 +09:00
autovacuum.c Handle DROP DATABASE getting interrupted 2023-07-13 13:03:28 -07:00
auxprocess.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
bgworker.c Refactor to split Apply and Tablesync Workers code. 2023-08-03 08:59:50 +05:30
bgwriter.c bufmgr: Support multiple in-progress IOs by using resowner 2023-04-05 14:17:55 -07:00
checkpointer.c bufmgr: Support multiple in-progress IOs by using resowner 2023-04-05 14:17:55 -07:00
fork_process.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
interrupt.c Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
meson.build Redesign archive modules 2023-02-17 14:26:42 +09:00
pgarch.c Redesign archive modules 2023-02-17 14:26:42 +09:00
postmaster.c Use FD_CLOEXEC on ListenSockets 2023-08-24 17:03:05 +03:00
startup.c Disable STARTUP_PROGRESS_TIMEOUT in standby mode. 2023-02-06 10:51:08 -05:00
syslogger.c Retire PG_SETMASK() macro. 2023-02-03 11:29:46 +13:00
walwriter.c Fix wal_writer_flush_after initializer value. 2023-05-15 11:19:54 +12:00