diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-07 23:09:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-07 23:09:02 +0200 |
commit | b9e7a9d870ac41d4db954edd52a1f5dd7d153389 (patch) | |
tree | be315e4d76e46077ba16defe19d623b4be161403 | |
parent | 987d561fe202568c0a2880cf047c7833fd365c7a (diff) |
resolved: make sure SIGTER/SIGINT actually can be caught and processed
-rw-r--r-- | src/resolve/resolved.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/resolved.c b/src/resolve/resolved.c index f61b70f46b..53f09db73b 100644 --- a/src/resolve/resolved.c +++ b/src/resolve/resolved.c @@ -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)); |