19 #ifdef HAVE_SYS_PRCTL_H
20 #include "sys/prctl.h"
23 #ifdef HAVE_SYS_PROCCTL_H
24 #include "sys/procctl.h"
90 #if (defined(HAVE_SYS_PRCTL_H) && defined(PR_SET_PDEATHSIG)) || \
91 (defined(HAVE_SYS_PROCCTL_H) && defined(PROC_PDEATHSIG_CTL))
92 #define USE_POSTMASTER_DEATH_SIGNAL
95 #ifdef USE_POSTMASTER_DEATH_SIGNAL
96 extern PGDLLIMPORT volatile sig_atomic_t postmaster_possibly_dead;
101 if (
likely(!postmaster_possibly_dead))
106 #define PostmasterIsAlive() PostmasterIsAliveInternal()
NON_EXEC_STATIC volatile PMSignalData * PMSignalState
#define PostmasterIsAlive()
Size PMSignalShmemSize(void)
bool ReleasePostmasterChildSlot(int slot)
void MarkPostmasterChildActive(void)
bool CheckPostmasterSignal(PMSignalReason reason)
bool PostmasterIsAliveInternal(void)
QuitSignalReason GetQuitSignalReason(void)
void MarkPostmasterChildInactive(void)
void SendPostmasterSignal(PMSignalReason reason)
void SetQuitSignalReason(QuitSignalReason reason)
void MarkPostmasterChildWalSender(void)
@ PMSIGNAL_START_AUTOVAC_WORKER
@ PMSIGNAL_RECOVERY_STARTED
@ PMSIGNAL_START_WALRECEIVER
@ PMSIGNAL_START_AUTOVAC_LAUNCHER
@ PMSIGNAL_BEGIN_HOT_STANDBY
@ PMSIGNAL_BACKGROUND_WORKER_CHANGE
@ PMSIGNAL_ROTATE_LOGFILE
@ PMSIGNAL_ADVANCE_STATE_MACHINE
bool IsPostmasterChildWalSender(int slot)
void PostmasterDeathSignalInit(void)
int AssignPostmasterChildSlot(void)
void PMSignalShmemInit(void)