Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
interrupt.h33 linesDownload Raw Back to postmaster
1/*-------------------------------------------------------------------------2 *3 * interrupt.h4 *	  Interrupt handling routines.5 *6 * Responses to interrupts are fairly varied and many types of backends7 * have their own implementations, but we provide a few generic things8 * here to facilitate code reuse.9 *10 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group11 * Portions Copyright (c) 1994, Regents of the University of California12 *13 * IDENTIFICATION14 *	  src/include/postmaster/interrupt.h15 *16 *-------------------------------------------------------------------------17 */18 19#ifndef INTERRUPT_H20#define INTERRUPT_H21 22#include <signal.h>23 24extern PGDLLIMPORT volatile sig_atomic_t ConfigReloadPending;25extern PGDLLIMPORT volatile sig_atomic_t ShutdownRequestPending;26 27extern void HandleMainLoopInterrupts(void);28extern void SignalHandlerForConfigReload(SIGNAL_ARGS);29extern void SignalHandlerForCrashExit(SIGNAL_ARGS);30extern void SignalHandlerForShutdownRequest(SIGNAL_ARGS);31 32#endif33 
codekingpro/portable-devtools · Team Ai