summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/signal/sigignore.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/signal/sigignore.c b/src/signal/sigignore.c
index 9c5c62ae..f59b83c4 100644
--- a/src/signal/sigignore.c
+++ b/src/signal/sigignore.c
@@ -2,6 +2,9 @@
int sigignore(int sig)
{
+ if (signal(sig, SIG_IGN) == SIG_ERR) {
+ return -1;
+ }
return 0;
}