chiark / gitweb /
resolved: make sure SIGTER/SIGINT actually can be caught and processed
[elogind.git] / src / resolve / resolved.c
index f61b70f46b6814743c80f20424d8d76ba1901da5..53f09db73baaf20eac2ae6a65189d9564f454bcb 100644 (file)
@@ -64,6 +64,8 @@ int main(int argc, char *argv[]) {
         if (r < 0)
                 goto out;
 
+        assert_se(sigprocmask_many(SIG_BLOCK, SIGTERM, SIGINT, -1) == 0);
+
         r = manager_new(&m);
         if (r < 0) {
                 log_error("Could not create manager: %s", strerror(-r));