PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
interrupt.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * interrupt.h
4 * Interrupt handling routines.
5 *
6 * Responses to interrupts are fairly varied and many types of backends
7 * have their own implementations, but we provide a few generic things
8 * here to facilitate code reuse.
9 *
10 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
11 * Portions Copyright (c) 1994, Regents of the University of California
12 *
13 * IDENTIFICATION
14 * src/include/postmaster/interrupt.h
15 *
16 *-------------------------------------------------------------------------
17 */
18
19#ifndef INTERRUPT_H
20#define INTERRUPT_H
21
22#include <signal.h>
23
24extern PGDLLIMPORT volatile sig_atomic_t ConfigReloadPending;
25extern PGDLLIMPORT volatile sig_atomic_t ShutdownRequestPending;
26
27extern void ProcessMainLoopInterrupts(void);
31
32#endif
#define PGDLLIMPORT
Definition: c.h:1291
#define SIGNAL_ARGS
Definition: c.h:1320
void SignalHandlerForShutdownRequest(SIGNAL_ARGS)
Definition: interrupt.c:109
void ProcessMainLoopInterrupts(void)
Definition: interrupt.c:34
PGDLLIMPORT volatile sig_atomic_t ConfigReloadPending
Definition: interrupt.c:27
void SignalHandlerForConfigReload(SIGNAL_ARGS)
Definition: interrupt.c:65
void SignalHandlerForCrashExit(SIGNAL_ARGS)
Definition: interrupt.c:77
PGDLLIMPORT volatile sig_atomic_t ShutdownRequestPending
Definition: interrupt.c:28