summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-07 23:09:02 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-07 23:09:02 +0200
commitb9e7a9d870ac41d4db954edd52a1f5dd7d153389 (patch)
treebe315e4d76e46077ba16defe19d623b4be161403 /src
parent987d561fe202568c0a2880cf047c7833fd365c7a (diff)
resolved: make sure SIGTER/SIGINT actually can be caught and processed
Diffstat (limited to 'src')
-rw-r--r--src/resolve/resolved.c2
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));