PostgreSQL Source Code  git master
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-2024, 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 
24 extern PGDLLIMPORT volatile sig_atomic_t ConfigReloadPending;
25 extern PGDLLIMPORT volatile sig_atomic_t ShutdownRequestPending;
26 
27 extern void HandleMainLoopInterrupts(void);
31 
32 #endif
#define PGDLLIMPORT
Definition: c.h:1316
#define SIGNAL_ARGS
Definition: c.h:1345
void SignalHandlerForShutdownRequest(SIGNAL_ARGS)
Definition: interrupt.c:105
PGDLLIMPORT volatile sig_atomic_t ConfigReloadPending
Definition: interrupt.c:27
void SignalHandlerForConfigReload(SIGNAL_ARGS)
Definition: interrupt.c:61
void SignalHandlerForCrashExit(SIGNAL_ARGS)
Definition: interrupt.c:73
void HandleMainLoopInterrupts(void)
Definition: interrupt.c:34
PGDLLIMPORT volatile sig_atomic_t ShutdownRequestPending
Definition: interrupt.c:28