postgresql/src/backend/postmaster
Thomas Munro 83709a0d5a Use SIGURG rather than SIGUSR1 for latches.
Traditionally, SIGUSR1 has been overloaded for ad-hoc signals,
procsignal.c signals and latch.c wakeups.  Move that last use over to a
new dedicated signal.  SIGURG is normally used to report out-of-band
socket data, but PostgreSQL doesn't use that facility.

The signal handler is now installed in all postmaster children by
InitializeLatchSupport().  Those wishing to disconnect from it should
call ShutdownLatchSupport().

Future patches will use this separation of signals to avoid the need for
a signal handler on some operating systems.

Discussion: https://postgr.es/m/CA+hUKGJjxPDpzBE0a3hyUywBvaZuC89yx3jK9RFZgfv_KHU7gg@mail.gmail.com
2021-03-01 12:44:12 +13:00
..
autovacuum.c Use errmsg_internal for debug messages 2021-02-17 11:33:25 +01:00
bgworker.c Use SIGURG rather than SIGUSR1 for latches. 2021-03-01 12:44:12 +13:00
bgwriter.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
checkpointer.c Use errmsg_internal for debug messages 2021-02-17 11:33:25 +01:00
fork_process.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
interrupt.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
Makefile Partially deduplicate interrupt handling for background processes. 2019-12-17 13:14:28 -05:00
pgarch.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pgstat.c Add pg_stat_database counters for sessions and session time 2021-01-17 13:52:31 +01:00
postmaster.c Use SIGURG rather than SIGUSR1 for latches. 2021-03-01 12:44:12 +13:00
startup.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
syslogger.c Use errmsg_internal for debug messages 2021-02-17 11:33:25 +01:00
walwriter.c Update copyright for 2021 2021-01-02 13:06:25 -05:00