summaryrefslogtreecommitdiff
path: root/src/libstddjb/sig_block.c
blob: fc673903fbadaee41d555c88a6e32471eca8b0df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* 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) ;
}