|
PostgreSQL Source Code git master
|
#include <signal.h>

Go to the source code of this file.
Macros | |
| #define | NUM_PMSIGNALS (PMSIGNAL_XLOG_IS_SHUTDOWN+1) |
| #define | PostmasterIsAlive() PostmasterIsAliveInternal() |
Typedefs | |
| typedef struct PMSignalData | PMSignalData |
| #define NUM_PMSIGNALS (PMSIGNAL_XLOG_IS_SHUTDOWN+1) |
Definition at line 48 of file pmsignal.h.
| #define PostmasterIsAlive | ( | ) | PostmasterIsAliveInternal() |
Definition at line 106 of file pmsignal.h.
| typedef struct PMSignalData PMSignalData |
Definition at line 61 of file pmsignal.h.
Definition at line 33 of file pmsignal.h.
| Enumerator | |
|---|---|
| PMQUIT_NOT_SENT | |
| PMQUIT_FOR_CRASH | |
| PMQUIT_FOR_STOP | |
Definition at line 53 of file pmsignal.h.
|
extern |
Definition at line 181 of file pmsignal.c.
References PMSignalData::PMSignalFlags, and PMSignalState.
Referenced by process_pm_pmsignal().
|
extern |
Definition at line 212 of file pmsignal.c.
References fb(), IsUnderPostmaster, PMQUIT_NOT_SENT, PMSignalState, and PMSignalData::sigquit_reason.
Referenced by quickdie().
Definition at line 270 of file pmsignal.c.
References Assert, num_child_flags, PM_CHILD_WALSENDER, PMSignalData::PMChildFlags, and PMSignalState.
Referenced by CountChildren(), and SignalChildren().
Definition at line 229 of file pmsignal.c.
References Assert, elog, FATAL, num_child_flags, PM_CHILD_ASSIGNED, PM_CHILD_UNUSED, PMSignalData::PMChildFlags, and PMSignalState.
Referenced by AssignPostmasterChildSlot().
Definition at line 248 of file pmsignal.c.
References Assert, num_child_flags, PM_CHILD_ASSIGNED, PM_CHILD_UNUSED, PMSignalData::PMChildFlags, PMSignalState, and result.
Referenced by ReleasePostmasterChildSlot().
Definition at line 308 of file pmsignal.c.
References am_walsender, Assert, fb(), MyPMChildSlot, num_child_flags, PM_CHILD_ACTIVE, PM_CHILD_WALSENDER, PMSignalData::PMChildFlags, and PMSignalState.
Referenced by InitWalSender().
Definition at line 406 of file pmsignal.c.
References elog, ERROR, fb(), and pqsignal.
Referenced by InitPostmasterChild().
Definition at line 345 of file pmsignal.c.
References EAGAIN, elog, EWOULDBLOCK, FATAL, fb(), postmaster_alive_fds, POSTMASTER_FD_WATCH, and read.
Referenced by WaitEventSetWaitBlock().
Definition at line 289 of file pmsignal.c.
References Assert, fb(), MarkPostmasterChildInactive(), MyPMChildSlot, num_child_flags, on_shmem_exit(), PM_CHILD_ACTIVE, PM_CHILD_ASSIGNED, PMSignalData::PMChildFlags, and PMSignalState.
Referenced by InitAuxiliaryProcess(), and InitProcess().
|
extern |
Definition at line 164 of file pmsignal.c.
References IsUnderPostmaster, kill, PMSignalData::PMSignalFlags, PMSignalState, PostmasterPid, and SIGUSR1.
Referenced by AutoVacLauncherMain(), CheckpointerMain(), CheckRecoveryConsistency(), do_start_worker(), GetNewMultiXactId(), GetNewTransactionId(), InitWalSender(), PerformWalRecovery(), pg_rotate_logfile(), pgaio_worker_request_grow(), RegisterDynamicBackgroundWorker(), RequestXLogStreaming(), SetMultiXactIdLimit(), SetTransactionIdLimit(), TerminateBackgroundWorker(), and TerminateBackgroundWorkersForDatabase().
|
extern |
Definition at line 201 of file pmsignal.c.
References PMSignalState, and PMSignalData::sigquit_reason.
Referenced by HandleFatalError(), and process_pm_shutdown_request().