skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

sig_unblock.c (196B)


      1 /* ISC license. */
      2 
      3 #include <signal.h>
      4 
      5 #include <skalibs/sig.h>
      6 
      7 void sig_unblock (int sig)
      8 {
      9   sigset_t ss ;
     10   sigemptyset(&ss) ;
     11   sigaddset(&ss, sig) ;
     12   sigprocmask(SIG_UNBLOCK, &ss, 0) ;
     13 }