about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/dnsfunnel/dnsfunneld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dnsfunnel/dnsfunneld.c b/src/dnsfunnel/dnsfunneld.c
index 2ff340f..61e2cc1 100644
--- a/src/dnsfunnel/dnsfunneld.c
+++ b/src/dnsfunnel/dnsfunneld.c
@@ -277,7 +277,7 @@ int main (int argc, char const *const *argv)
       sigemptyset(&set) ;
       sigaddset(&set, SIGTERM) ;
       sigaddset(&set, SIGHUP) ;
-      if (selfpipe_trapset(&set) < 0) strerr_diefu1sys(111, "trap signals") ;
+      if (!selfpipe_trapset(&set)) strerr_diefu1sys(111, "trap signals") ;
     }
     if (!gensetdyn_new(&queries, &sentinel))
       strerr_diefu1sys(111, "initialize query structure") ;