blob: ee5d9a9cb2f81d030be9a494a4adc277176287d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* ISC license. */
#include <signal.h>
#include <skalibs/sig.h>
void sig_shield (void)
{
sigset_t ss ;
sigemptyset(&ss) ;
sigaddset(&ss, SIGTERM) ;
sigaddset(&ss, SIGQUIT) ;
sigaddset(&ss, SIGABRT) ;
sigaddset(&ss, SIGINT) ;
sigaddset(&ss, SIGPIPE) ;
sigaddset(&ss, SIGHUP) ;
sigprocmask(SIG_BLOCK, &ss, 0) ;
}
|