Repair memory leaks in plpython.
[pgsql.git] / src / include / postmaster / interrupt.h
blobb488a9ac67dc43ab0d168e7bf803229f86e5e7fe
1 /*-------------------------------------------------------------------------
3 * interrupt.h
4 * Interrupt handling routines.
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.
10 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
11 * Portions Copyright (c) 1994, Regents of the University of California
13 * IDENTIFICATION
14 * src/include/postmaster/interrupt.h
16 *-------------------------------------------------------------------------
19 #ifndef INTERRUPT_H
20 #define INTERRUPT_H
22 #include <signal.h>
24 extern PGDLLIMPORT volatile sig_atomic_t ConfigReloadPending;
25 extern PGDLLIMPORT volatile sig_atomic_t ShutdownRequestPending;
27 extern void HandleMainLoopInterrupts(void);
28 extern void SignalHandlerForConfigReload(SIGNAL_ARGS);
29 extern void SignalHandlerForCrashExit(SIGNAL_ARGS);
30 extern void SignalHandlerForShutdownRequest(SIGNAL_ARGS);
32 #endif