PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
static DWORD WINAPI | pg_signal_thread (LPVOID param) |
static BOOL WINAPI | pg_console_handler (DWORD dwCtrlType) |
void | pg_usleep (long microsec) |
void | pgwin32_signal_initialize (void) |
void | pgwin32_dispatch_queued_signals (void) |
int | pqsigprocmask (int how, const sigset_t *set, sigset_t *oset) |
int | pqsigaction (int signum, const struct sigaction *act, struct sigaction *oldact) |
HANDLE | pgwin32_create_signal_listener (pid_t pid) |
void | pg_queue_signal (int signum) |
Variables | |
volatile int | pg_signal_queue |
int | pg_signal_mask |
HANDLE | pgwin32_signal_event |
HANDLE | pgwin32_initial_signal_pipe = INVALID_HANDLE_VALUE |
static CRITICAL_SECTION | pg_signal_crit_sec |
static struct sigaction | pg_signal_array [PG_SIGNAL_COUNT] |
static pqsigfunc | pg_signal_defaults [PG_SIGNAL_COUNT] |
|
static |
Definition at line 377 of file signal.c.
References pg_queue_signal().
Referenced by pgwin32_signal_initialize().
void pg_queue_signal | ( | int | signum | ) |
Definition at line 259 of file signal.c.
References Assert, PG_SIGNAL_COUNT, pg_signal_crit_sec, pg_signal_queue, pgwin32_signal_event, and sigmask.
Referenced by pg_console_handler(), pg_signal_thread(), and pg_timer_thread().
|
static |
Definition at line 274 of file signal.c.
References pg_queue_signal(), pgwin32_initial_signal_pipe, snprintf, and write_stderr.
Referenced by pgwin32_signal_initialize().
void pg_usleep | ( | long | microsec | ) |
Definition at line 53 of file signal.c.
References EINTR, pgwin32_dispatch_queued_signals(), pgwin32_signal_event, and unlikely.
Referenced by _bt_pendingfsm_finalize(), AcceptConnection(), auth_delay_checks(), AutoVacWorkerMain(), BackendInitialize(), BackgroundWorkerMain(), BackgroundWriterMain(), CheckpointerMain(), ConditionalXactLockTableWait(), CountOtherDBBackends(), CreateCheckPoint(), do_watch(), exec_prog(), FileReadV(), FileWriteV(), get_controlfile_by_exact_path(), InitPostgres(), main(), perform_spin_delay(), pgarch_ArchiverCopyLoop(), pgwin32_recv(), read_local_xlog_page_guts(), regression_main(), RequestCheckpoint(), ResolveRecoveryConflictWithDatabase(), ResolveRecoveryConflictWithVirtualXIDs(), StartupXLOG(), threadRun(), vacuum_delay_point(), wait_for_connection_state(), wait_for_end_recovery(), wait_for_postmaster_promote(), wait_for_postmaster_start(), wait_for_postmaster_stop(), wait_pid(), WaitExceedsMaxStandbyDelay(), WALDumpOpenSegment(), WalSndWaitStopping(), WalWriterMain(), XactLockTableWait(), and XLogFlush().
void pgwin32_dispatch_queued_signals | ( | void | ) |
Definition at line 120 of file signal.c.
References Assert, i, pg_signal_array, PG_SIGNAL_COUNT, pg_signal_crit_sec, pg_signal_defaults, pg_signal_queue, pgwin32_signal_event, sig, SIG_DFL, SIG_ERR, SIG_IGN, sigmask, and UNBLOCKED_SIGNAL_QUEUE.
Referenced by pg_usleep(), PGSemaphoreLock(), pgwin32_poll_signals(), pgwin32_select(), pgwin32_waitforsinglesocket(), pqsigprocmask(), and WaitEventSetWait().
void pgwin32_signal_initialize | ( | void | ) |
Definition at line 79 of file signal.c.
References ereport, errmsg_internal(), FATAL, i, pg_console_handler(), pg_signal_array, PG_SIGNAL_COUNT, pg_signal_crit_sec, pg_signal_defaults, pg_signal_mask, pg_signal_queue, pg_signal_thread(), pgwin32_signal_event, SIG_DFL, and SIG_IGN.
Referenced by InitPostmasterChild(), InitStandaloneProcess(), and PostmasterMain().
int pqsigaction | ( | int | signum, |
const struct sigaction * | act, | ||
struct sigaction * | oldact | ||
) |
int pqsigprocmask | ( | int | how, |
const sigset_t * | set, | ||
sigset_t * | oset | ||
) |
Definition at line 171 of file signal.c.
References pg_signal_mask, and pgwin32_dispatch_queued_signals().
|
static |
Definition at line 34 of file signal.c.
Referenced by pgwin32_dispatch_queued_signals(), pgwin32_signal_initialize(), and pqsigaction().
|
static |
Definition at line 34 of file signal.c.
Referenced by pg_queue_signal(), pgwin32_dispatch_queued_signals(), and pgwin32_signal_initialize().
|
static |
Definition at line 38 of file signal.c.
Referenced by pgwin32_dispatch_queued_signals(), and pgwin32_signal_initialize().
int pg_signal_mask |
Definition at line 25 of file signal.c.
Referenced by pgwin32_signal_initialize(), and pqsigprocmask().
volatile int pg_signal_queue |
Definition at line 24 of file signal.c.
Referenced by pg_queue_signal(), pgwin32_dispatch_queued_signals(), and pgwin32_signal_initialize().
HANDLE pgwin32_initial_signal_pipe = INVALID_HANDLE_VALUE |
Definition at line 28 of file signal.c.
Referenced by pg_signal_thread().
HANDLE pgwin32_signal_event |
Definition at line 27 of file signal.c.
Referenced by CreateWaitEventSet(), pg_queue_signal(), pg_usleep(), PGSemaphoreLock(), pgwin32_dispatch_queued_signals(), pgwin32_select(), pgwin32_signal_initialize(), and pgwin32_waitforsinglesocket().