summaryrefslogtreecommitdiff
path: root/src/libstddjb/sig_altignore.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-07-29 00:10:45 +0000
committerLaurent Bercot <ska@appnovation.com>2021-07-29 00:10:45 +0000
commit4f53303d8dd06e6c34491275e0d80b43082d247f (patch)
tree804890be331268b9bc33d4b1d2e08eb8d718d9e4 /src/libstddjb/sig_altignore.c
parent9592bfd0dda7c575de07bce2c7a81b8432d845a4 (diff)
downloadskalibs-4f53303d8dd06e6c34491275e0d80b43082d247f.tar.xz
Add sig_altignore()2.11.0.0
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libstddjb/sig_altignore.c')
-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) ;
+}