summaryrefslogtreecommitdiff
path: root/src/libstddjb/sig_blocknone.c
blob: a8d1fbcf8ea16fb75475e514da620021e59204b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* ISC license. */

#include <errno.h>
#include <signal.h>

#include <skalibs/sig.h>

void sig_blocknone (void)
{
  int e = errno ;
  sigset_t ss ;
  sigemptyset(&ss) ;
  sigprocmask(SIG_SETMASK, &ss, 0) ;
  errno = e ;
}