#include "postgres_fe.h"
#include <signal.h>
Go to the source code of this file.
◆ pqsignal()
Definition at line 36 of file legacy-pqsignal.c.
References SIG_ERR, SIGALRM, and SIGCHLD.
42 act.sa_handler = func;
43 sigemptyset(&act.sa_mask);
46 act.sa_flags |= SA_RESTART;
49 act.sa_flags |= SA_NOCLDSTOP;
51 if (sigaction(signo, &act, &oact) < 0)
53 return oact.sa_handler;
55 return signal(signo, func);