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

/* MT-unsafe */

#include <skalibs/sig.h>

int sig_catch (int sig, skasighandler_t_ref f)
{
  struct skasigaction ssa = { f, SKASA_MASKALL | SKASA_NOCLDSTOP } ;
  return sig_catcha(sig, &ssa) ;
}