chiark / gitweb /
resolved: make sure SIGTER/SIGINT actually can be caught and processed
authorLennart Poettering <lennart@poettering.net>
Mon, 7 Jul 2014 21:09:02 +0000 (23:09 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 7 Jul 2014 21:09:02 +0000 (23:09 +0200)
src/resolve/resolved.c

index f61b70f..53f09db 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));