summaryrefslogtreecommitdiff
path: root/src/libstddjb
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb')
-rw-r--r--src/libstddjb/sig_altignore.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libstddjb/sig_altignore.c b/src/libstddjb/sig_altignore.c
new file mode 100644
index 0000000..304d6f8
--- /dev/null
+++ b/src/libstddjb/sig_altignore.c
@@ -0,0 +1,15 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/sig.h>
+
+static void sig_nop (int sig)
+{
+ (void)sig ;
+}
+
+int sig_altignore (int sig)
+{
+ return sig_catch(sig, &sig_nop) ;
+}