postgres.git / summary / log / commit / refs
commit 8e861eaae86eeaf5589963c9b1c7ce6d4c2acbb5
Author: Thomas Munro <tmunro@postgresql.org>
Date: Sun Apr 18 22:22:31 2021 +0000
First released in: 14.0
Explain postmaster's treatment of SIGURG.
Add a few words of comment to explain why SIGURG doesn't follow the
dummy_handler pattern used for SIGUSR2, since that might otherwise
appear to be a bug.
Discussion: https://postgr.es/m/4006115.1618577212%40sss.pgh.pa.us
src/backend/postmaster/postmaster.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 4a3ca78c1b7..b05db5a4735 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -660,6 +660,11 @@ PostmasterMain(int argc, char *argv[])
pqsignal_pm(SIGCHLD, reaper); /* handle child termination */
#ifdef SIGURG
+ /*
+ * Ignore SIGURG for now. Child processes may change this (see
+ * InitializeLatchSupport), but they will not receive any such signals
+ * until they wait on a latch.
+ */
pqsignal_pm(SIGURG, SIG_IGN); /* ignored */
#endif
[parent: 4ed7f0599a89]