PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pqsignal.c File Reference
#include "postgres.h"
#include "libpq/pqsignal.h"
Include dependency graph for pqsignal.c:

Go to the source code of this file.

Functions

void pqinitmask (void)
 

Variables

sigset_t UnBlockSig
 
sigset_t BlockSig
 
sigset_t StartupBlockSig
 

Function Documentation

◆ pqinitmask()

void pqinitmask ( void  )

Definition at line 41 of file pqsignal.c.

42{
44
45 /* Note: InitializeWaitEventSupport() modifies UnBlockSig. */
46
47 /* First set all signals, then clear some. */
50
51 /*
52 * Unmark those signals that should never be blocked. Some of these signal
53 * names don't exist on all platforms. Most do, but might as well ifdef
54 * them all for consistency...
55 */
56#ifdef SIGTRAP
59#endif
60#ifdef SIGABRT
63#endif
64#ifdef SIGILL
67#endif
68#ifdef SIGFPE
71#endif
72#ifdef SIGSEGV
75#endif
76#ifdef SIGBUS
79#endif
80#ifdef SIGSYS
83#endif
84#ifdef SIGCONT
87#endif
88
89/* Signals unique to startup */
90#ifdef SIGQUIT
92#endif
93#ifdef SIGTERM
95#endif
96#ifdef SIGALRM
98#endif
99}
sigset_t StartupBlockSig
Definition pqsignal.c:24
sigset_t UnBlockSig
Definition pqsignal.c:22
sigset_t BlockSig
Definition pqsignal.c:23
static int fb(int x)
#define SIGCONT
Definition win32_port.h:167
#define SIGQUIT
Definition win32_port.h:159
#define SIGTRAP
Definition win32_port.h:160
#define SIGALRM
Definition win32_port.h:164
#define SIGABRT
Definition win32_port.h:161

References BlockSig, fb(), SIGABRT, SIGALRM, SIGCONT, SIGQUIT, SIGTRAP, StartupBlockSig, and UnBlockSig.

Referenced by InitPostmasterChild(), InitStandaloneProcess(), and PostmasterMain().

Variable Documentation

◆ BlockSig

◆ StartupBlockSig

sigset_t StartupBlockSig

Definition at line 24 of file pqsignal.c.

Referenced by BackendInitialize(), and pqinitmask().

◆ UnBlockSig