aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/initdb/initdb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index 3983b237313..30e3701f92a 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -3197,6 +3197,11 @@ setup_signals(void)
#ifdef SIGPIPE
pqsignal(SIGPIPE, SIG_IGN);
#endif
+
+ /* Prevent SIGSYS so we can probe for kernel calls that might not work */
+#ifdef SIGSYS
+ pqsignal(SIGSYS, SIG_IGN);
+#endif
}