121{
122#if !(defined(WIN32) && defined(FRONTEND))
123 struct sigaction act;
124#endif
125
127
128 if (func != SIG_IGN && func != SIG_DFL)
129 {
132 }
133
134#if !(defined(WIN32) && defined(FRONTEND))
135 act.sa_handler = func;
136 sigemptyset(&act.sa_mask);
137 act.sa_flags = SA_RESTART;
138#ifdef SA_NOCLDSTOP
140 act.sa_flags |= SA_NOCLDSTOP;
141#endif
142 if (sigaction(signo, &act, NULL) < 0)
144#else
145
146 if (signal(signo, func) == SIG_ERR)
148#endif
149}
#define Assert(condition)
static void wrapper_handler(SIGNAL_ARGS)
static volatile pqsigfunc pqsignal_handlers[PG_NSIG]