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-2020, 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
void SignalHandlerForCrashExit(SIGNAL_ARGS)
Definition: interrupt.c:72
#define PGDLLIMPORT
Definition: c.h:1313
void SignalHandlerForShutdownRequest(SIGNAL_ARGS)
Definition: interrupt.c:104
void HandleMainLoopInterrupts(void)
Definition: interrupt.c:33
void SignalHandlerForConfigReload(SIGNAL_ARGS)
Definition: interrupt.c:56
PGDLLIMPORT volatile sig_atomic_t ConfigReloadPending
Definition: interrupt.c:26
#define SIGNAL_ARGS
Definition: c.h:1329
PGDLLIMPORT volatile sig_atomic_t ShutdownRequestPending
Definition: interrupt.c:27