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

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

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