2
0

interrupt.h 1008 B

1234567891011121314151617181920212223242526272829303132
  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-2022, 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. #ifndef INTERRUPT_H
  19. #define INTERRUPT_H
  20. #include <signal.h>
  21. extern PGDLLIMPORT volatile sig_atomic_t ConfigReloadPending;
  22. extern PGDLLIMPORT volatile sig_atomic_t ShutdownRequestPending;
  23. extern void HandleMainLoopInterrupts(void);
  24. extern void SignalHandlerForConfigReload(SIGNAL_ARGS);
  25. extern void SignalHandlerForCrashExit(SIGNAL_ARGS);
  26. extern void SignalHandlerForShutdownRequest(SIGNAL_ARGS);
  27. #endif