summaryrefslogtreecommitdiff
path: root/src/libstddjb/sig_block.c
blob: 89ae51ffdd7f2530e54981bd44233e3862ce755b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ISC license. */

#include <signal.h>
#include <skalibs/sig.h>

void sig_block (int sig)
{
  sigset_t ss ;
  sigemptyset(&ss) ;
  sigaddset(&ss, sig) ;
  sigprocmask(SIG_BLOCK, &ss, 0) ;
}