summaryrefslogtreecommitdiff
path: root/src/network/networkd.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-07 23:11:03 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-07 23:11:03 +0200
commit186fe1db20902b6542cee58ba499ced914d687a8 (patch)
tree7ea2225adb6039e7dfec77f3d3bc7133997c368b /src/network/networkd.c
parentb9e7a9d870ac41d4db954edd52a1f5dd7d153389 (diff)
networkd: simplify signal handling of SIGTERM/SIGINT
sd-event makes handling SIGTERM/SIGINT a lot easier than it used to, let's make use of this
Diffstat (limited to 'src/network/networkd.c')
-rw-r--r--src/network/networkd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd.c b/src/network/networkd.c
index d6075359c8..665f4c4709 100644
--- a/src/network/networkd.c
+++ b/src/network/networkd.c
@@ -75,6 +75,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));