diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index 2a16888b0f..5c40a1ef1b 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -47,6 +47,7 @@ #include "storage/fd.h" #include "storage/ipc.h" #include "storage/pmsignal.h" +#include "storage/proc.h" #include "tcop/tcopprot.h" #include "utils/guc.h" #include "utils/memutils.h" @@ -844,7 +845,7 @@ WalSndSignals(void) pqsignal(SIGINT, SIG_IGN); /* not used */ pqsignal(SIGTERM, WalSndShutdownHandler); /* request shutdown */ pqsignal(SIGQUIT, WalSndQuickDieHandler); /* hard crash time */ - pqsignal(SIGALRM, SIG_IGN); + pqsignal(SIGALRM, handle_sig_alarm); pqsignal(SIGPIPE, SIG_IGN); pqsignal(SIGUSR1, SIG_IGN); /* not used */ pqsignal(SIGUSR2, WalSndLastCycleHandler); /* request a last cycle and